facebook-graph-api-v2.0

Get Facebook app-scoped user id from global Facebook id, or username

我们两清 提交于 2020-12-01 10:49:14
问题 If you have a Facebook, for instance Zuckerbergs user id '4', or username, 'zuck', how do you get the new app-scoped id with Graph v2.0 using the app's access token? Can't seem to find anything about this in the docs. 回答1: This is basically the answer given to the other-way-around question, Get Facebook User ID from app-scoped User ID . Basically, easiest straight forward flow is a call to https://graph.facebook.com/?ids=http://facebook.com/[FBID/USERNAME]&access_token=[APP_ID]|[APP_SECRET]

Get Facebook app-scoped user id from global Facebook id, or username

坚强是说给别人听的谎言 提交于 2020-12-01 10:47:31
问题 If you have a Facebook, for instance Zuckerbergs user id '4', or username, 'zuck', how do you get the new app-scoped id with Graph v2.0 using the app's access token? Can't seem to find anything about this in the docs. 回答1: This is basically the answer given to the other-way-around question, Get Facebook User ID from app-scoped User ID . Basically, easiest straight forward flow is a call to https://graph.facebook.com/?ids=http://facebook.com/[FBID/USERNAME]&access_token=[APP_ID]|[APP_SECRET]

Get Facebook app-scoped user id from global Facebook id, or username

為{幸葍}努か 提交于 2020-12-01 10:46:53
问题 If you have a Facebook, for instance Zuckerbergs user id '4', or username, 'zuck', how do you get the new app-scoped id with Graph v2.0 using the app's access token? Can't seem to find anything about this in the docs. 回答1: This is basically the answer given to the other-way-around question, Get Facebook User ID from app-scoped User ID . Basically, easiest straight forward flow is a call to https://graph.facebook.com/?ids=http://facebook.com/[FBID/USERNAME]&access_token=[APP_ID]|[APP_SECRET]

Authenticate the Test User { “error_type”: “OAuthException”, “code”: 400, “error_message”: “Invalid platform app” }

余生长醉 提交于 2020-04-04 11:22:11
问题 I'm trying to recover the access token via the Instagram Basic Display API but when trying to authenticate the test user I get this error: { "error_type": "OAuthException", "code": 400, "error_message": "Invalid platform app" } I expect to see the app authorization screen 回答1: Felice! When setting up an Instagram app, you should use the platform specific App ID and not the generic one setup on Facebook. In your Facebook app Dashboard go to Products > Instagram > Basic Display and should see

how to get a list of all user friends?

点点圈 提交于 2020-01-24 08:14:03
问题 I am building an app using Facebook Graph API v.20 . The first thing it needs to do is to export the complete list of friends from the user ( ID, name and picture ) to a CSV file. Is this possible? 回答1: Short answer: No. The Graph API v2.0 reference documentation implies that your app will only be able to access (through the API, at least) those of the user's friends who have themselves used your app and allowed your app to access their own friends list: Permissions A user access token with

how to get a list of all user friends?

爷,独闯天下 提交于 2020-01-24 08:13:08
问题 I am building an app using Facebook Graph API v.20 . The first thing it needs to do is to export the complete list of friends from the user ( ID, name and picture ) to a CSV file. Is this possible? 回答1: Short answer: No. The Graph API v2.0 reference documentation implies that your app will only be able to access (through the API, at least) those of the user's friends who have themselves used your app and allowed your app to access their own friends list: Permissions A user access token with

Facebook sdk: Graph API in Android

我是研究僧i 提交于 2020-01-07 02:50:49
问题 In Facebook v1 graph api user id is the unique id for a user in multiple apps. But in graph api v2 the user id does not exist, only scope id exists and it is not unique for multiple apps. Is there any key or id which is unique for one user in multiple apps? 回答1: But in graph api v2 the user id does not exist, only scope id exists and it is not unique for multiple apps. I am pretty sure that app-scoped ids are still unique - they are just not the same for different apps (because that’s what

Facebook login for group members

偶尔善良 提交于 2020-01-02 02:28:29
问题 I'm the administrator of a small group on Facebook, it has about 40-50 members. Now I'm building a webpage for the group which will authorize users using Facebook Login (I'm using Laravel + SammyK's LaravelFacebookSDK if that matters). Everything works fine, there is a problem though. I'd like to restrict login for only those who are members of the Facebook group. The best way would be using the /me/groups API, but that requires user_groups permission, which is restricted. Of course there are

I cant save some facebook images to my server as it does not understand the file

一世执手 提交于 2019-12-30 14:09:22
问题 I am using the facebook graph api and it was working well until I realised that some of the jpg files have a query string at the end that is making them unusable. e.g. https://scontent.xx.fbcdn.net/hphotos-xaf1/v/t1.0-9/487872_451835128174833_1613257199_n.jpg?oh=621bed79f5436e81c3e219c86db8f0d9&oe=560F3D0D I have tried stripping off everything after .jpg in the hope that it would still load the image but unfortunately it doesnt. In the following code take the $facebook_image_url to be the one

Facebook PHP SDK 4.0 - Cannot re-ask read permissions once denied

只愿长相守 提交于 2019-12-22 10:38:05
问题 I'm currently asking users for two read permissions i.e. email and user_location and one write permssion i.e. publish_actions . Following is the code snippet I'm using to verify if the user has granted all requested permissions: $facebook = new Facebook(APP_ID, APP_SECRET, REDIRECT_URI); if ( $facebook->IsAuthenticated() ) { // Verify if all of the scopes have been granted if ( !$facebook->verifyScopes( unserialize(SCOPES) ) ) { header( "Location: " . $facebook->getLoginURL( $facebook->denied