Questions tagged [facebook-javascript-sdk]

Facebook's JavaScript SDK provides a rich set of client-side functionality for accessing Facebook's server-side API calls. It can collaborate with any SDK like PHP, C#, Java, android, ios, etc

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

facebook-js-sdk FB.api('/me', { fields: ['email'] }) not returning email when the user has signed up with phone number

**DISCLAMER:** I am aware there are similar question that has been solved by specifying the correct fields it needs which was a change made on v2.4. This is not the same problem or question. facebook-...
tinnick's user avatar
  • 336
0 votes
0 answers
14 views

Facebook developer app creation not showing None type

I want to create an app for both consumer and business permissions and products. I tried making a Facebook app it is not showing me None field: I checked Facebook documentation it is showing None ...
Hadeed Rajput's user avatar
0 votes
0 answers
21 views

Facebook Graph API Explorer permissions not available attribution_read, public_profiles

I'm developing an app and facing issues testing API calls in the Facebook Graph API Explorer. Some permissions are unavailable through the API Explorer, and I can only access them by creating a ...
Hadeed Rajput's user avatar
-1 votes
0 answers
23 views

Messenger Extensions Javascript SDK Error -32603

this is my source code.I call MessengerExtensions.getContext(APP_ID) after that found error -32603 note 1.i added domain whitelisting. 2.app id is correct export default { methods: { async ...
PigRabb Boy's user avatar
0 votes
0 answers
21 views

Creating Product Sets on Facebook using Graph API or Javascript SDK

I am trying to create product sets from an existing catalogue on facebook. I was able to use nodejs-facebook-business-sdk well so far to fetch the catalogueID, the product ids and other fields from ...
ItsHr0gd's user avatar
0 votes
0 answers
21 views

Is there a way to get the Applications Submitted metric using the Insights edge of the Facebook Graph API?

I am trying get the metric Applications Submitted seen in the image. I am using v18 of the Graph API directly with HTTP. I am using the Ad Account node with the Insights edge, but no matter what ...
ErevuDeveloper's user avatar
0 votes
0 answers
19 views

How to get access to the birthday of the logged-in person's friends?

I am currently working on a web application project using the Graph API. The goal of the project is to allow users to log in through Facebook, grant necessary permissions, and view their friends' ...
Leonardo Junio's user avatar
0 votes
0 answers
41 views

Facebook Login tutorial code return "Sorry, something went wrong." when requesting permissions (scope)

I copy / paste this code I found there : from https://developers.facebook.com/docs/facebook-login/web/ It works. But when I want to add a permission, ie : {scope: 'public_profile,email'} : I got : ...
Jean François Manatane's user avatar
0 votes
0 answers
52 views

Is there a way to get the Business Account ID used to log into an app with Facebook Login for Business?

I have created an application that uses Facebook Login for Business. The authentication flow gets an Authorization Code that is then exchanged for a System User Access Token(SUAT). A successful login ...
ErevuDeveloper's user avatar
0 votes
0 answers
19 views

How do I delete the draft of the permissions I have requested on Facebook ? I haven't yet submitted the app for review

I need to delete these permissions first, I think I have made an error in asking for permissions. Clicked on Edit button it takes me to App Review. Tried using delete button on the permissions and ...
Mayank's user avatar
  • 47
0 votes
0 answers
20 views

Navigating the Facebook App Development Process with Advanced Permission Needs

I'm currently developing a Facebook app that primarily requires advanced permissions to function properly. However, I'm facing a catch-22 situation: I need these advanced permissions to build and test ...
Mayank's user avatar
  • 47
5 votes
0 answers
349 views

Not Found (404) error for Facebook Graph API/ JavaScript SDK Profile Picture

When trying to access user profile picture from Facebook graph API or JavaScript SDK, the url for picture is returned, but the URL does not resolve to a picture when requested. The JavaScript SDK ...
Nishan's user avatar
  • 3,832
0 votes
0 answers
34 views

How to fix access to XMLHttpRequest blocked by CORS policy in Facebook customer chat?

I have added customer chat plugin code generated by Facebook wizard on my otherwise empty page. <div id="fb-root"></div> <!-- Your Customer chat code --> <div id="...
kathdroid's user avatar
0 votes
0 answers
86 views

Facebook login button throw Sorry, something went wrong message

So basically I am here: https://developers.facebook.com/docs/facebook-login/web/ and I implemented the Full Code Example provided on the page which is: <!DOCTYPE html> <html> <head> ...
paulalexandru's user avatar
2 votes
0 answers
92 views

Facebook JS SDK - Business Login (SUAT)

The provided Facebook login JS SDK works with User Login (User Access Token aka UAT) flow via "Facebook Login for Business" but not for the Business Login (System-user Access Token aka SUAT)....
James Pham's user avatar
0 votes
0 answers
19 views

Meta API OAUTH exception(#10) while using post

I have a problem when using meta API I'm trying to post on instagram from javascript, when I'm trying to get access_token, facebook_pages, instagram_business_account_id there's no problem but each ...
Gwen's user avatar
  • 29
0 votes
0 answers
104 views

Unsupported post request. Object with ID '###' does not exist, cannot be loaded due to missing permissions, or does not support this operation

We're attempting to use the Facebook nodejs SDK to create and manage ad campaigns, ad sets, ads, etc. We followed the guide in the Quickstart link of the Meta for Developers Marketing API section. Our ...
Greg's user avatar
  • 203
0 votes
0 answers
42 views

Instagram_basic Permission for instagram send message API

I have implemented a solution for sending messages through Instagram Direct using the graph API.While checking the documentation of the facebook they have given that we have to provide the ...
sid's user avatar
  • 1
1 vote
0 answers
87 views

Facebook JavaScript SDK - OAuth Redirect URI Validation Issue when Exchanging Authorization Code

I'm currently setting up Facebook Login. I'm using the code response type and successfully getting back an authorization code. Attempting to exchange the auth code with an access token on the backend ...
user5252279's user avatar
0 votes
0 answers
41 views

Instagram Send Message API

I have implemented the instagram messaging in my app. Using the below method: https://developers.facebook.com/docs/messenger-platform/instagram I have given the permissions which are mentioned in the ...
sid's user avatar
  • 1
0 votes
0 answers
55 views

I couldn't send message through instagram send message API

While calling send message api from postman using the page access token is giving an error message like: App does not have Advanced Access to instagram_manage_messages permission, and recipient user ...
sid's user avatar
  • 1
0 votes
0 answers
49 views

Instagram send messege api returning "Please check if IG business connected to FB page correctly" error

I'm using meta graph api for sending message through instagram DMs. I'm using the page access token for sending the messsage.The api which I used for sending message is curl -i -X POST \ "https:...
sid's user avatar
  • 1
0 votes
0 answers
38 views

Facebook account is temporarily restricted due to unusual activity

I am using Facebook Ads API to create Facebook ads, optimise them and fetch insights for users. Normal Facebook login flow is used to get the user access token and this access token is used to perform ...
Aromal S's user avatar
0 votes
0 answers
51 views

eCommerce product is not found in my Facebook Developer Account

I read that article https://developers.facebook.com/docs/commerce-platform/app-dashboard which says I can create a test eCommerce account by using eCommerce product in my Facebook app. You can see the ...
habib's user avatar
  • 1,432
0 votes
0 answers
33 views

Facebook Ad Preview using JavaScript SDK Not Loading

Using the Facebook JavaScript SDK Ad Plugin with Marketing API v18.0 is not actually showing the preview. I've added the domains the Facebook App settings. In Firefox console is this message: The ...
dobrzyns's user avatar
0 votes
0 answers
117 views

Facebook Log-in not properly working for Meta?

I recently got an email from Meta stating there is an issue with my Facebook login via Android. There are no issues for iOS devices. I tested the login with my old Samsung S10e, and everything worked ...
Tammy'sSlots's user avatar
2 votes
1 answer
209 views

Facebook Login For Business - User Denied

We have created a new facebook app, using the product Facebook Login for Business. The app is currently in Dev/Sandbox mode, our business has been verified and advanced access requested where asked. ...
Yooz's user avatar
  • 2,526
0 votes
0 answers
19 views

Facebook Permission to Show Timeline

I am a WordPress theme developer and want to add one feature to my theme where my theme users can be able to display their own Facebook post/timeline inside their own website. So the scenario is as ...
Peter Chimp's user avatar
1 vote
0 answers
43 views

Angular Facebook post embedding. Where to put <script src="" nonce="">

I am trying to embedd Facebook Posts on my Angular webpage. However Facebook is giving me as SDK following code: <div id="fb-root"></div> <script async defer crossorigin=&...
SoxCodinJava's user avatar
0 votes
0 answers
22 views

Unable to retrieve facebook feed with valid IDs

I've been on this for a few hours now, i've read the docs related to what i'm trying to achieve and everything looks right... But it's not working. I'm simply trying to retrieve a facebook page's feed ...
ThaoD5's user avatar
  • 183
0 votes
0 answers
128 views

How to fix the inconsistent response status of FB.login method in React project using Facebook SDK?

I am working on a React project that uses the Facebook SDK, but I have a problem with the FB.login method. I want to authenticate users with Facebook, but the response is not reliable. Sometimes, when ...
shamsucm 's user avatar
0 votes
0 answers
104 views

Facebook embeded live iframe not starting on safari

I will make it easy to understand, thank you in advance for your time and support If you follow the steps below: 1 - Go to a live on facebook, Press more options, then Press Embed 2 - Copy the code ...
Victor's user avatar
  • 469
5 votes
0 answers
381 views

Facebook App Can't Submit Data Handling Questions [closed]

I am not sure why I can't submit these data handling questions for my facebook app. I am not able to contact their support and don't know how to resolve this. Does anyone know why?
Jason Biondo's user avatar
0 votes
0 answers
44 views

Is there a way to manually trigger Facebook Meta API's verification webhook manually or check its verification status?

When creating a webhook on the Meta developer platform, one is asked to provide a Webhook URL and verify_token. Upon clicking Save & Verify a verify request is sent to the URL to check whether the ...
BerciTheBeast's user avatar
0 votes
0 answers
17 views

Image div popup some time working and sometime not working

Hey I am trying to create a image Popup section. there I am got a unique problem, first i load my website after that when I hover on div then some image scaling and some image is not scaling, Not ...
Aryan Raj's user avatar
0 votes
0 answers
115 views

Messenger webhook is not triggering messaging_referrals and messaging_postbacks events when a conversation is started via an ad

I have created an ad that clicks to messenger using Facebook ads API. But I am unable to figure out how to set referral_id or postback payload while creating the Ad. I am receiving only the messages ...
Aromal S's user avatar
0 votes
0 answers
39 views

How to check if an Instagram connected to Facebook page is a professional account using API?

We are creating ads that click to Instagram account connected to a page. But for this, an Instagram professional account is mandatory. How to determine if an Instagram account connected to a Facebook ...
Aromal S's user avatar
-1 votes
1 answer
115 views

Meta API for getting the long-lived token showing Sorry, this content isn't available right now

I have called the Instagram Meta API for getting the long-lived token. It generates a response like Sorry, this content isn't available right now https://graph.instagram.com/access_token?grant_type=...
sidhu's user avatar
  • 1
0 votes
0 answers
46 views

Problem with scope while accesing groups with Facebook JS SDK

I'm trying to get access to user's pages and groups. Im using JS SDK v17.0. I have no problems with accessing user's pages but i cannot access groups. Here's the code I use: function getuserData (...
Mateusz Zaniewski's user avatar
0 votes
0 answers
24 views

Why should I upgrade my app to the latest Facebook API Graph v2.2 to v17?

I was searching about this without success so I want to know your opinions, I'm a newbie in Facebook SDK and APIs. I'll appreciate your knowledge about this. I found this guide but It doesn't respond ...
Eder Vásquez's user avatar
0 votes
0 answers
15 views

Facebook Page Live Comments

I came across from this article. I would like to get it done for the live video from facebook pages. https://developers.facebook.com/docs/graph-api/server-sent-events/endpoints/live-comments/ I tried ...
Iop Jaol's user avatar
1 vote
1 answer
173 views

Need help creating a carousel creative with placement customization using the Meta API

I am currently working on integrating the Meta API for creating ads on Facebook. I am specifically trying to create a carousel creative with placement customization, but I'm facing some challenges ...
K.Nikolic's user avatar
0 votes
0 answers
95 views

Error "Unpublished posts must be posted to a page as the page itself" when trying to upload unpublished image post to a page's group

I have a FB page under my account and I created a group with that page, and I'm trying to post an unpublished post of image to the group in order to get the postId of the image so I can post multiple ...
123's user avatar
  • 157
0 votes
1 answer
155 views

Facebook JavaScript SDK - Login not working in Brave browser

I am trying to implement Facebook JS SDK in my React application (created using create-react-app) but unfortunately the login is not working in Brave browser. The login window opens up fine however I ...
Gaurav Mantri's user avatar
0 votes
0 answers
67 views

Passing values of contact form to lead event through facebook pixel

I am trying to use the fbq('track', 'Lead'); when a user submits the contact form on the website. The pageview event works fine, but I want to send out the form data like first and last name, email ...
Sam's user avatar
  • 111
2 votes
0 answers
30 views

How to upload multiple photos in single Facebook post using Graph API

postResponse = await axios.post(https://graph.facebook.com/${pageId}/photos, { url: payload.mediaUrls[0], message: payload.post, access_token: pageAccessToken, }); I am using Graph API, This is my ...
Usama Mushtaq's user avatar
0 votes
0 answers
104 views

Facebook Developers Adding Allowed Domains for JavaScript SDK

I am reaching out to seek assistance regarding the configuration of Allowed Domains for the JavaScript SDK in our app, Azle. As you may know, Azle is a customer support application that integrates ...
Dip Vachhani's user avatar
0 votes
1 answer
270 views

Get user's system user access token from facebook login for business

I am new to facebook's javascript sdk and am trying to get ads_read and ads_management permissions, I created an app added marketing api and Facebook Login for Business to it and added necessary ...
Brijesh's user avatar
  • 33
0 votes
0 answers
26 views

Programmatically Update the Allowed Domains for the JavaScript SDK in facebook developer console

Is there a way to programmatically update the Allowed Domains for the JavaScript SDK in the developer settings of facebook. I cannot seem to find any documentation regarding this
Dinuka Jayamaha's user avatar
1 vote
0 answers
81 views

How to get message from an ads with facebook graph api

I have an Ad ID, I query the creative fields and I got the creative ID. I then make another API call to get the object_story_spec, if theres no data, I found out that I have to make a query the other ...
andrew's user avatar
  • 21

1
2 3 4 5
107