Questions tagged [facebook-graph-api]

10515 questions
1

votes
2

answer
2k

Views

Retrieving facebook user access token with socialite on laravel 5.4

I am trying to get user access token so I can send CURL request through Guzzle to Facebook's Graph API to get user's friends that are using the app. But I can't seem to be able to obtain it. Here's my controller:
Mihail Pernichev
0

votes
1

answer
46

Views

Facebook API Graph. Instagram. How to get user profile picture knowing only username?

I'm implementing webhook subscription to receive notifications about new comments on Instagram media (so, the solution assumes server side environment). Webhook payload contains a comment ID. Fetching a comment node via Facebbok API Graph call I can get author's username. From this point I need to g...
Olegas
0

votes
2

answer
347

Views

API Share count Facebook Graph deprecated?

Since today when I try to get the share count the answer is :share field is deprecated for versions v2.9 and higher. Ex with : https://graph.facebook.com/?id=https://stackoverflow.com&fields=share Without &fields=share the json content is displayed but without the share value. I need to get the shar...
Lorenzo
0

votes
0

answer
3

Views

Cannot post to group using test user in app

Logged in as Test User to post to group in app while in development mode, but failed. According to this bug report https://developers.facebook.com/support/bugs/374244166706163/ It works only when I'm an admin of both the app and group. To request Groups API permission in App review section, I have t...
Boz
1

votes
2

answer
96

Views

Getting likes data (id and name) from JSONArray - Facebook api

i'm trying to get id and name from likes data in the facebook graph api on android: { 'data': [ { 'id': '1433908706707486_917483885016640' }, { 'id': '1433908706707486_910831695681859' }, { 'id': '1433908706707486_906550586109970', 'likes': { 'data': [ { 'id': 'xxxx', 'name': 'xxx' } ], 'paging': {...
ahsen
1

votes
1

answer
41

Views

How to find posts of a facebook page within a certain period of time?

I want to import posts of a page between 07-12-2017 and 10-12-2017. I have converted the dates to unix timestamps. https://graph.facebook.com/v2.11/ekantipur?fields=posts.until(1512926148).limit(125)&access_token=MyAccessToken works and so does https://graph.facebook.com/v2.11/ekantipur?fields=post...
Ashutosh Chapagain
1

votes
1

answer
123

Views

Problems sign up to facebook with ruby on rails

when I sign up using facebook my url is http://localhost:3000/registration then it will change to http://localhost:3000/registration#= but it wont let me login that the only thing it changes on that page just the url. Contoller class OmniauthCallbacksController < Devise::OmniauthCallbacksController...
AB74574
1

votes
1

answer
1.1k

Views

What is the Facebook Business Manager “BUSINESS_SCOPED_USER_ID”?

As usual the official FB documentation is confusing.. Literally: You need: adaccount_id : the ad account id (in 'act_123' form) user_id : the id of the user to add the role to assign Make this POST call to add a new user as Admin: curl \ -F 'user=BUSINESS_SCOPED_USER_ID' \ -F 'role=ADMIN' \ -F 'acc...
Roberto Belotti
1

votes
2

answer
551

Views

getting public_content permission for instagram, it says “applications no longer accepted”

I want to create an app that can let users login and give basic, follower list and public_content permission. The purpose is to get a users basic info along with public info of non authenticated users. The developer website says: 'public_content - to read any public profile info and media on a user...
Meghanaa Aggarwall
1

votes
0

answer
330

Views

Accessing FB Business Manager API

I am trying to access FB Business Manager Marketing API to get data on my Ad Set data. The way I went about accessing this is by first creating an app through here: https://developers.facebook.com/apps Should I use something else like Rfacebook? This is how I did it below: I retrieved my App Id a...
nak5120
1

votes
0

answer
196

Views

Can one application have two facebook app id with two different fb account?

I have published one application which uses facebook login. I have created facebook developer account and get app id for my application and it was working fine. Its been a year I have released my application on google play. But now I am not able to access my facebook account. I am facing this error...
Krishna
1

votes
0

answer
92

Views

Facebook Structured Message (Template) in conversation api

I'm working on linking a Messenger Bot with a Inbox Manager App. Inbox Manager App need to get old messages from /conversation API https://developers.facebook.com/docs/graph-api/reference/v2.11/conversation/messages to display old messages. However, I can't find proper data to display it. Example: 1...
Nguyễn Huy
1

votes
0

answer
282

Views

Swift Firebase Facebook Login - Gets Name, but email returns nil

Recently my facebook login hasn't been working. It doesn't save into my database but in Firebase authentication it shows someone signed in with facebook but the email is blank. It doesn't save any data to my database which it should. The email is returning nil. My google sign in works. I've checked...
Lukas Bimba
1

votes
0

answer
91

Views

Get the href configured in the comments plugin from the facebook webhook callback

I'm trying to retrieve the href attribute configured in the Facebook comments plugin from the plugin_comment webhook, in that way I can know the comment origin and trigger a notification to the owner of the content where the comment was made. I've reviewed the facebook documentation of the comments...
1

votes
0

answer
220

Views

get facebook graph api response with google cloud functions

I am currently developing an Android app that outputs the posts of a Facebook page. Of course I want to notify the app users about new posts. Then I connected my app to Firebase Notification. When I enter and send a message there, a push message is displayed on the mobile phone. Of course I don't wa...
Lutz Eckelmann
1

votes
0

answer
34

Views

php order that nested loops run in

I have a piece of code that retrieves data from the Facebook api. Basically what happens is I loop over all the posts in our own database. For each posts it will try to get all shares for that post from the Facebook api. The Facebook api retrieves an object with a next link for the next batch of sha...
Merijn dk
1

votes
0

answer
43

Views

Authenticate web API 2 from cordova app with Facebook

have a Cordova app with Onsen framework, I want to authenticate my Web Api 2 with Facebook login or with SQLServer Database users table. The Facebook login works successfully with the Cordova APP, I get a token from Facebook and the logged user, how can I secure my Web API with this way? I store FB...
Daina Hodges
1

votes
0

answer
148

Views

Is there any limit on page subscribed by a Facebook messenger app

I am trying to develop a Facebook messenger app and subscribe multiple Facebook pages on it because I don't want to create multiple Facebook apps which need to go through the Facebook review process each. So, I tried out subscribing multiple page on it and it seems working. But, I think is there any...
shashank
1

votes
0

answer
113

Views

Facebook Webhooks with pages - only want to get posts

I'm using Facebook Webhooks with a an app subscription to a page. I've it linked to functions in Firebase, and so far everything is running really well. However, the one snag is that its recording every comment, like and update! With a really busy facebook page thats not ideal! All I want is the lat...
kierandes
1

votes
1

answer
336

Views

Messenger chatbot send file

I'd like to send a file to the user, to do so I tried the request below, but it fails. The docs are not clear about wether is_reusable is compulsory, but the request fails with the same error, even if I include it. The download url works fine in a browser. I have https://asd.com/ whitelisted for sur...
Bence Gedai
1

votes
0

answer
53

Views

Facebook login in android and IOS and server side, which way is best?

I want to integrate Facebook login from my android and IOS app, and there is Nodejs server at backed, As I know we can do FB login in two ways 1. Server side(by providing FB login API's through API server) 2. Mobile side, by directly using Fb client libraries for Android and IOS so my question is...
Sudhakar Reddy
1

votes
0

answer
144

Views

Retrieve Sharedposts with Graph API

I was trying to get shared posts of a photo of my page using: Photo_ID/sharedposts But whenever I tried, it returns an empty data set. I have already added 'manage_pages' permission but it doesn't seem to work. The Graph API said that : A post will be returned if either (a) the app created the po...
g3ntl3m3n
1

votes
0

answer
31

Views

Facebook messanger API:change button styles and colors

Currently the facebook messanger API supports different types of buttons https://developers.facebook.com/docs/messenger-platform/send-messages/buttons But is there any way to change the default style of that button eg:Adding custom color,change border Is it possible with API??
iam batman
1

votes
1

answer
301

Views

[Facebook][Graph-API] Facebook doesn't return all posts for a page

I'm currently testing to get some posts from a media page for a specific time range: page: https://www.facebook.com/LExpress since: 2017-09-06 11:00:00 +0000 (strtotime -> 1504688400) until: 2017-09-06 18:00:00 +0000 (strtotime -> 1504713600) But surprisingly some posts are missing from Facebook res...
Ben Tazulev
1

votes
0

answer
31

Views

Facebook Game Request do not appear as Notifications on iOS or Android Devices

I am working on a mobile app that supposed to be on iOS and Android. As Login mechanism I use Facebook SDK and to challenge and invite friends, I implemented the generic Game Request from the SDK. https://developers.facebook.com/docs/games/services/gamerequests Unfortunately I never recieve the noti...
Ilker Baltaci
1

votes
0

answer
5.2k

Views

Chrome Extension and Identity API: Upon login attempt to Facebook user is asked for username + password although he is already logged on FB

I'm developing a Chrome Extension and use Chrome Identity API's to perform Facebook Oauth 2.0 authentication. Personally, I'm testing this on the latest Chrome version (64). In principal, the login flow works fine. However, I am annoyed that Chrome presents a new user a Facebook login window with em...
Steve06
1

votes
0

answer
97

Views

How do I get the specific Facebook error message instead of a a general fail message

A page request to Facebook when failed always throws up a generic error message: Exception: The remote server returned an error (400) Bad Request. However, when I do the same call manually, via the browser I get the specific Facebook error message as below: { 'error': { 'message': '(#32) Page reques...
ibexy
1

votes
1

answer
212

Views

Using Graph API , how to retrieve Images of the comments and replies to the comment?

I am creating an Android App.The App have a feature that retrieve Facebook posts using Graph API. My Problem My Problem is , the received JSON lacks the following fields: Url for the images attached with the comments Replies to the comments Only No. of likes available. No Reactions list For posts...
Lord Commander
1

votes
0

answer
270

Views

get fb pixel id using api

I was looking for any way of getting the fb pixel id using the graph api or the list of fb pixel id for an fb account using the fb login oauth flow. But after looking at various docs , I couldn't find any api call that would return such data. From Graph Api explorer: https://developers.facebook.com/...
ayush gupta
1

votes
0

answer
873

Views

What does the Facebook API mean when it says “user is not a confirmed user”

I have an app that uses the Graph API to access our users' information from Facebook. For some users, our requests fail. When I check these specific users' access tokens with FB's Access Token Debugger, I receive the following error: Error validating access token: Sessions for the user are not allow...
baylee
1

votes
0

answer
31

Views

Scrape links via PHP SDK vs Explorer

I'd like to know the difference between using scrape via PHP sdk and Explorer, in my particular case using SDK PHP I have a function in a class basically with this little snippet of code try{ $scrape = $this->getFacebook()->post('/',array ( 'scrape' => 'true', 'id' => $link ), $accessToken ); $data[...
Rubislandy Rodriguez
1

votes
0

answer
364

Views

Request to Graph API returns 400 Bad Request response; expecting Graph API error code

We are sending a request to facebook's Graph API to update an Ad Set's end_time via JavaScript using the node-fetch npm package: const data = { end_time: fields.endTime, access_token: FB_ADS_TOKEN } const options = { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringi...
M. Baquerizo
1

votes
1

answer
75

Views

Facebook Graph API only get own posts without shared posts

I'm new to the Facebook API with PHP, and so far, I've succeeded in retrieving all the posts for my feed. But, I want to retrieve only the posts I have published, so nothing I have shared (that's what's included when I use the /posts) nor do I want messages placed on my feed by someone else (that's...
Ronald
1

votes
0

answer
468

Views

Getting Facebook Code+AccessToken In Identity server 4

I have a Identity Server 4 setup using Facebook for authentication. This is very plug and play .AddFacebook('facebook', options => { options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme; options.ClientId = 'xxx'; options.AppSecret = 'xxx'; }); I can see that during the...
Oli
1

votes
1

answer
168

Views

AWS Cognito pools, with Facebook and Required attribute as “Phone Number”

I've created a AWS Cognito pool with Phone Number as required attribute and Facebook as one of federations. Since FB do not provide any Phone number during Oauth is there any workaround to map 'any other FB attribute' to phone number so as user id is created (the attribute once in pool, can be chang...
Shambhurao Rane
1

votes
1

answer
68

Views

Android: Facebook Login/Logout overlapping?

So I am trying to implement Facebook Login on my Android app. So far I think it is working. It logins. So, when I go back to my login page (still need to update this) the button I had saying 'login with facebook', turns to 'Log out'. I press it, but instead of logging out, it logs in again. This is...
JaneDyta
1

votes
0

answer
203

Views

Request parameters not coming in facebook webhook callback url

I want to integrate Facebook leads into my WordPress website. I went through all instructions given on Facebook url https://developers.facebook.com/docs/marketing-api/guides/lead-ads/quickstart/webhooks-integration But I'm not getting request parameters when webhook trying to verify webhook on page...
Akhtar Khan
1

votes
0

answer
451

Views

Opengraph tags (og:tags) in Django template not scraped by Facebook

I've been trying to get opengraph tags work for my django website. I use 'www.somewebsite.com' as website url during this question. I used the following static code in the header: This did not work, so I've installed django-meta (http://django-meta.readthedocs.io/en/latest/installation.html) and imp...
Johan
1

votes
0

answer
132

Views

Set test user's “Current City” for app using Facebook SDK

I have created an app on developers.facebook.com. I would like to set the 'Current City' for a few test users I have created. But when I 'log in as this test user', I cannot change the current city to anything except 'Kolkata'. I know, this is a very strange error, and I have tried on multiple web...
Theme
1

votes
0

answer
52

Views

Unable to get Email via Facebook login

Unable to get email via Facebook login though we get accesstoken, id , name but email as null even permission for email is also mentioned in code,is there anything we have set permission for email too from facebook developer console. Followed the set as per the developers.facebook.com,. public class...
Yokesh Sankar

View additional questions