facebook-access-token

Extending 60 days Facebook token

不打扰是莪最后的温柔 提交于 2019-12-06 11:46:07
问题 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

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

眉间皱痕 提交于 2019-12-06 07:28:36
问题 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 Graph API: getting an access token with an app ID and secret

不打扰是莪最后的温柔 提交于 2019-12-05 21:03:13
https://developers.facebook.com/docs/facebook-login/access-tokens/ : Here is what I put in my browser: https://graph.facebook.com/?endpoint&key=value&access_token=[THE APP ID]|[THE APP SECRET] Here is the result.. an error message: (#803) Some of the aliases you requested do not exist: endpoint Help! Goes to " https://developers.facebook.com/tools/explorer " Copy the code of "Access Token" I use "Access Token" as Token for Rfacebook Packages. and it works. Hope it can work on your side. Phat H. VU The error told everything : endpoint alias does not exist. If you want to generate the Facebook

Can't get “count” in “likes” and “comments” fields using my own registered app's access_token

大城市里の小女人 提交于 2019-12-05 16:43:34
Main Question: When I sent a GET request to retrieve data of someID/POSTS, like https://graph.facebook.com/microsoft/posts?fields=comments,likes&limit=1&access_token= , cannot get the "count" in "likes" and "comments" fields using the access token generated by my own facebook registered app, but can get the expected data if using the access token from Facebook Sample apps, e.g. " HelloFacebookSample ". This issue occurs on both Android and FB Graph API Exploer. Also in oder to troubleshoot the possible causes, I used the exactly same codes as FB sample under my registered app_id, but the same

set user (access token) within FB.init

筅森魡賤 提交于 2019-12-05 07:51:32
i want to publish story to user timeline even when they were not login with facebook. Actually I stored user access token in the database, if the user login in with email, i'll retrieve the access token for her. It works well in php (e.g get friends list after setAccessToken(token_from_database), but when i post the story, it always post to current fb login account's timeline. I think the problem is caused by fb.init: window.fbAsyncInit = function() { FB.init({ appId : 'XXX', // App ID status : true, // check login status cookie : true // enable cookies to allow the server to access the

C# Facebook SDK extend an accesstoken to 60 days

跟風遠走 提交于 2019-12-05 04:23:04
问题 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

The Access Token is Valid but We get OAuthException: An active access token error

落花浮王杯 提交于 2019-12-05 03:15:40
问题 We've been working on an application for about 2 months, and everything was going perfectly. we were using PHP SDK and offline mode in permissions for login But since some days ago after recent changes in Facebook api and removing offline mode we started facing the problem of "Uncaught OAuthException: An active access token must be used to query information about the current user." The main problem is that it does happen after a while working in our app (about 10 mins) but at the same time

How to generate Facebook Marketing API access token to use it in Windows application

混江龙づ霸主 提交于 2019-12-05 00:17:04
问题 I am using Facebook as advertising platform to promote my application on Apple and Google stores. I would like to make windows service which will download daily report(s) about advertising status of my marketing campaign running one Facebook, preferably using 60 day token, or some permanent solution so that token is retrieved when required. I think that i understand everything to do this except how to generate access token to use it with Facebook Graph API. Which token for which Facebook

Getting App Access Token for facebook app?

懵懂的女人 提交于 2019-12-04 18:09:08
问题 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...

Expiry Time of facebook access token

不打扰是莪最后的温柔 提交于 2019-12-04 16:48:51
How do I find at what time an access token is going to expire in php ? The token you receive initially from Facebook in the signed_request expires in 2 hours or 7200000 milliseconds or 7200 seconds. If you extend the token with the below request you will receive a new expire time of 5184000 seconds in the response which converts to 60 days. What I typically do is store this time in milliseconds added to the current Unix time in milliseconds since the epoch and continually check against that time when needed. Extending the token : https://graph.facebook.com/oauth/access_token? client_id=APP_ID&