facebook-access-token

Extending 60 days Facebook token

时光怂恿深爱的人放手 提交于 2019-12-04 16:01:23
I'm using Hybridauth to connect with Facebook. Everything works well at that point ;-) I get a token and when I check it at https://developers.facebook.com/tools/debug/ I see it has 2 months expiration. After some days, for example, 50 days, I see the token will expire in 10 days indeed. I try to extend with method documented (and described in other StackOverflow questions) with: https://graph.facebook.com/oauth/access_token? client_id=APP_ID& client_secret=APP_SECRET& grant_type=fb_exchange_token& fb_exchange_token=EXISTING_ACCESS_TOKEN Then I receive ANOTHER token, but if I check that new

Using Instagram Graph Api with permanent page access token only works for some accounts

こ雲淡風輕ζ 提交于 2019-12-04 12:37:17
I try to fetch some images from an instagram business account through the instagram graph api by means of a permanent page access token ( facebook: permanent Page Access Token? ). These specific tokens seem to be the only possibility to get permanent access to the graph api for a server-side app . On the other side I found a hint in the fb documentation that only user accesss tokens can be used to access instagram business accounts. "Page access tokens are not supported." https://developers.facebook.com/docs/instagram-api/overview/?locale=en_US Funny enough I was using page tokens so far

What is the code for getting a refreshed Facebook token in an Android app?

谁都会走 提交于 2019-12-04 11:19:26
问题 I am developing an Android app. With the impending deprecation of Facebook's offline_access permission I am trying to use the Graph API to extend the Facebook token. https://graph.facebook.com/oauth/access_token? client_id=APP_ID& client_secret=APP_SECRET& grant_type=fb_exchange_token& fb_exchange_token=EXISTING_ACCESS_TOKEN Can anyone provide detailed code that demonstrates how to implement the code above into an android app and obtain the refreshed Facebook token? Thank you for your time.

C# Facebook SDK extend an accesstoken to 60 days

主宰稳场 提交于 2019-12-03 21:24:26
The main question: How am I supposed to extend the 2 hour access token for the 60 day access token via the C# SDK? Can you provide a sample of just that section where the code has already been traded for the 2 hour access token? Background: I've been looking around on here and trying various solutions and haven't found one that works for me yet. I can successfully make the /me call and get the information about the current user however when I try to extend the access token it fails. The goal of this app is to allow a user to set up a post and to monitor likes and comments after the fact for a

If I enable migrations “July 2013 Breaking Changes” of my app, then search user by email wouldn't work

爱⌒轻易说出口 提交于 2019-12-03 16:23:33
I'm using the search graph API to search for users by email. Here's an example of how I do that: GET https://graph.facebook.com/search?q=Sample%40gmail.com&fields=name%2clink%2ceducation%2cid%2cwork%2cabout%2cpicture&limit=2&type=user&access_token=... Before the July 2013 Breaking Changes it was working fine. Once I enabled the breaking changes I start getting HTTP 403 saying that that the access token is not valid. HTTP/1.1 403 Forbidden Access-Control-Allow-Origin: * Cache-Control: no-store Content-Type: text/javascript; charset=UTF-8 Expires: Sat, 01 Jan 2000 00:00:00 GMT Pragma: no-cache

NodeJS REST authentication using Passport and OAuth2 + social network

可紊 提交于 2019-12-03 16:16:36
问题 I'm working on REST api using NodeJS . For authentication I decided to use Passport . I want truly RESTful api. So it means I have to use tokens instead of sessions. I want to let users login using username and password, or using social networks like Facebook, Google and Twitter. I make my own OAuth2.0 server for issuing Access and Refresh tokens using oauth2orize module. So now I can register new user and then issue them tokens. I followed this tutorial: http://aleksandrov.ws/2013/09/12

How to get user profile info using access token in php-sdk

自闭症网瘾萝莉.ら 提交于 2019-12-03 14:15:46
问题 I want to get user profile using access token that i have already generated , and if the access token is invalid it shoud display error. anyone can help to do this ? i want php code to handle this. i am waiting.... 回答1: Since you already have the access token , the simplest and clean way would be- $user_details = "https://graph.facebook.com/me?access_token=" .$access_token; $response = file_get_contents($user_details); $response = json_decode($response); print_r($response); 回答2: First check

Sensible solutions to the removal of the offline_access permission

亡梦爱人 提交于 2019-12-03 13:25:01
问题 Am coming back to building a FB app after some time away from the FB Platform and I see that the old offline_access permission has been removed and replaced with long(ish)-expiry tokens[1]. So, it now seems like any external app that needs to push data to Facebook based on, say, a schedule or some activity in the external app will need to cope with that long-access token having expired. This is made more frustrating because now a user logging out of FB will also kill any long-expiry token[2],

Getting App Access Token for facebook app?

こ雲淡風輕ζ 提交于 2019-12-03 11:35:38
I have read this: trying to get app access token And it doesn't work... I'm getting the following error: "error": { "message": "An active access token must be used to query information about the current user.", "type": "OAuthException", "code": 2500 } I need the app access token in order to create open graph objects that are owned by the application. I know how to create objects owned by the users, but I just cant find the correct way of creating the App access token. AppId -> doesn't work... AppId|AppSecret -> doesn't work.... App ClientToken -> doesn't work.... Anyone know this? You can get

Long Lived access token Facebook Page [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 10:17:23
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have a facebook page and i want the feeds of page. I am using graph api to get the access token but i have no idea how to convert that short-lived access token to long-lived access token https://graph.facebook