facebook-access-token

Never Expiring Facebook Page Access Token

╄→尐↘猪︶ㄣ 提交于 2020-07-04 18:36:09
问题 I have been trying to find a way to create a never expiring FaceBook Page Access Token. I have seen the option where you provide the AppID|AppSecret in place of the token however that requires you to submit the app for approval and facebook does not seem to understand concept of OTHER apps using the token. Regardless, see the answer below for how I found a way to do this. 回答1: After piecing together many different solutions - I did this and it seems to work. I assume you only want a token for

Never Expiring Facebook Page Access Token

吃可爱长大的小学妹 提交于 2020-07-04 18:36:03
问题 I have been trying to find a way to create a never expiring FaceBook Page Access Token. I have seen the option where you provide the AppID|AppSecret in place of the token however that requires you to submit the app for approval and facebook does not seem to understand concept of OTHER apps using the token. Regardless, see the answer below for how I found a way to do this. 回答1: After piecing together many different solutions - I did this and it seems to work. I assume you only want a token for

Never Expiring Facebook Page Access Token

泄露秘密 提交于 2020-07-04 18:31:34
问题 I have been trying to find a way to create a never expiring FaceBook Page Access Token. I have seen the option where you provide the AppID|AppSecret in place of the token however that requires you to submit the app for approval and facebook does not seem to understand concept of OTHER apps using the token. Regardless, see the answer below for how I found a way to do this. 回答1: After piecing together many different solutions - I did this and it seems to work. I assume you only want a token for

An active access token must be used to query information about the current user

余生颓废 提交于 2020-01-21 10:23:30
问题 I have defined an access token. It is a fresh access token obtained with curl. Why am I still getting the error: An active access token must be used to query information about the current user. <?php define('YOUR_APP_ID', '*****'); define('YOUR_APP_SECRET', '*****'); function get_facebook_cookie($app_id, $app_secret) { $args = array(); parse_str(trim($_COOKIE['fbs_' . $app_id], '\\"'), $args); ksort($args); $payload = ''; foreach ($args as $key => $value) { if ($key != 'sig') { $payload .=

Php Curl returns data on local machine but bool false on server

浪子不回头ぞ 提交于 2020-01-15 11:11:23
问题 I am trying to get facebook access token But the url when executed from browser and local machine php script returns true data values. However, when i run the same script from server, it fails and shows bool(false) the url $token_url = "https://graph.facebook.com/oauth/access_token?" . "client_id=".$config['appId']."&redirect_uri=" . urlencode($config['callback_url']) . "&client_secret=".$config['secret']."&code=" . $_GET['code']; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $token_url);

iOS 6 Facebook Login not refreshing access token

我与影子孤独终老i 提交于 2020-01-11 06:27:33
问题 Nothing I'm reading (many FB dev articles and SO question) is helping, so I thought I'd post here. I'm trying to get this all to work with iOS 6 and Facebook SDK 3.1.1. I've got a pretty basic setup: My iOS app authenticates with Facebook, I pass the access_token to my server and the user is now logged into my app. The only other thing they can do related to facebook is post something to their wall. I'm using the legacy Dialog window so the user can add their own comments. Everything works

Unity Facebook SDK 4.3.4 - AccessToken and Login Status not cleared for previous user

泪湿孤枕 提交于 2020-01-06 01:28:32
问题 I just wanted to see if anyone else have seen this problem, or whether I may be doing something incorrectly. That is, after logging out from the Facebook app and logging in as another person (either through Facebook app directly, or FB.Login via the Unity app), you will still get the profile data for the previous person (access token, login status, userId, etc). After FB.Init(), FB.IsLoggedIn is still true and FB.UserId and FB.AccessToken is still present for the previous user. Even after a

Facebook Application Auth Token Get Error

陌路散爱 提交于 2020-01-03 02:57:09
问题 I am trying to request the authtoken for my app via the Facebook API Graph Exlorer following the facebooks instructions. When I do a get call with a URL with the following form: https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials I get the following error: { "error": { "message": "Invalid callback", "type": "OAuthException", "code": 1 } } Suggestions on how I might go about obtaining the access token for my app would

How get Facebook token using Oauth2 with chrome.identity

柔情痞子 提交于 2019-12-30 02:32:44
问题 I'm using chrome.identity in a packaged app to get a user token using Facebook. I call chrome.identity.launchWebAuthFlow, and I need to take the access token, send it to the server, and then access token is used to verify the user. Works great with Google+. But for some reason, it doesn't work for Facebook. For some reason, Facebook's OAuth appears to be special. I've added the extensionid.chromiumapp.org to the list of redirect URLs in the API. Added "https://extensionid.chromiumapp.org/*",

Extending expiry date of facebook access token in graph api beyond 2 months

﹥>﹥吖頭↗ 提交于 2019-12-30 01:20:17
问题 I am working on facebook page wallpost automation using python I have automated posting on a fb page that i own by using facebook graph api post So i do this by sending a HTTP POST request to https://graph.facebook.com/mypagename/feed with access_token and message as POST paramaters I generate the access token by using graph api explorer by selecting my app that i am using and giving it permission to manage my pages Intitially the access_token use to expire in 2 hours To extend the expiry