facebook-access-token

How should a Facebook user access token be consumed on the server-side?

五迷三道 提交于 2019-11-28 15:14:42
Preface I'm developing several web services and a handful of clients (web app, mobile, etc.) which will interface with said services over HTTP(s). My current work item is to design an authentication and authorization solution for the product. I have decided to leverage external identity providers, such as Facebook, Google, Microsoft, Twitter, and the like for authentication. I'm trying to solve the problem of, "when a request comes to my server, how do I know who the user is and how can I be sure?". More questions below as well... Requirements Rely on external identities to indicate who I'm

Access token removed in Facebook Android SDK 4.0

耗尽温柔 提交于 2019-11-28 12:16:57
I am using Facebook Android SDK 4.0 (newly updated version). I logged in to my app after the initial setup. Then I exited from my app. If again start my app, user is not in the logged in state. When I use debugger, it shows "ACCESS TOKEN REMOVED". What is the procedure to check whether the user is in logged in state using Access Token? I have tried new log in method (according to newer version 4.0) in which they mentioned about log in process. I have done it. But whenever I open up Access Token state is "ACCESS TOKEN REMOVED". I checked App id, Package name, Activity name in dash board

Need Help on OAuthException Code 2500

时光怂恿深爱的人放手 提交于 2019-11-28 08:40:48
I am trying to develop an Facebook application (apps.facebook.com/some_app) using PHP where I need to present some information based on user's music interests. I found that its under "user_likes > games". My problems are as follows: To gain access, I have implemented the oauth dialog method as suggested in API in my index page. $auth_url = "http://www.facebook.com/dialog/oauth?client_id=" . $app_id . "&redirect_uri=" . urlencode($canvas_page) ."&scope=user_likes"; After successful authorization I come back to index page with "code" as parameters. http://MY_CANVAS_PAGE/?code=some base64 encoded

facebook access token is invalid - trying to post to facebook website-“page” via app using a cron

拈花ヽ惹草 提交于 2019-11-28 01:47:00
I am trying to post to my website's Facebook fan-page via a cron on my server. I created a user on Facebook named "John Doe", i made him admin on my website's Facebook fan-page and then i created an app from that user in sandbox mode, so only he, "John Doe" can "run" it. I gave the necessary permissions to my app from "John Doe" who runs it. I can manually get the access tokens through developers.facebook.com and use them to post from my php cron script to my website's Facebook fan-page through "John Doe"'s app. The problem is, that in order for this to work, my "John Doe" facebook user must

Can't Load URL: The domain of this URL isn't included in the app's domains

試著忘記壹切 提交于 2019-11-27 18:20:36
I'm trying to get access token from user string response_script = "<script>top.location.href='https://www.facebook.com/v2.4/dialog/oauth?response_type=token&client_id=[APPLICATION ID]&redirect_uri=https://www.facebook.com/[APPLICATION URL]/?sk=app_[PAGE ID]&scope='; </script>"; But I'm getting an error: Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings. That code works well. So I think that needs to add my url to Valid OAuth redirect URIs But It doesn

FBSDKAccessToken currentAccessToken nil after quitting app

偶尔善良 提交于 2019-11-27 08:50:01
I am developing an ios app using the Facebook SDK to login. I have set a LogInViewController as the initial View Controller in the Storyboard, from where the user logins using the FB account. I have another ViewController which is loaded correctly once the user logs in. In the AppDelegate file I am checking for currentAccessToken and if it is not nil, I am loading directly the second ViewController, because the user is already logged in. However, the currentAccessToken is always nil if I quit the app and relaunch it. It only works if I press the home button and re-open the app while it's still

Access token removed in Facebook Android SDK 4.0

亡梦爱人 提交于 2019-11-27 06:52:39
问题 I am using Facebook Android SDK 4.0 (newly updated version). I logged in to my app after the initial setup. Then I exited from my app. If again start my app, user is not in the logged in state. When I use debugger, it shows "ACCESS TOKEN REMOVED". What is the procedure to check whether the user is in logged in state using Access Token? I have tried new log in method (according to newer version 4.0) in which they mentioned about log in process. I have done it. But whenever I open up Access

facebook access token is invalid - trying to post to facebook website-“page” via app using a cron

空扰寡人 提交于 2019-11-26 21:59:50
问题 I am trying to post to my website's Facebook fan-page via a cron on my server. I created a user on Facebook named "John Doe", i made him admin on my website's Facebook fan-page and then i created an app from that user in sandbox mode, so only he, "John Doe" can "run" it. I gave the necessary permissions to my app from "John Doe" who runs it. I can manually get the access tokens through developers.facebook.com and use them to post from my php cron script to my website's Facebook fan-page

Can't Load URL: The domain of this URL isn't included in the app's domains

蓝咒 提交于 2019-11-26 19:23:30
问题 I'm trying to get access token from user string response_script = "<script>top.location.href='https://www.facebook.com/v2.4/dialog/oauth?response_type=token&client_id=[APPLICATION ID]&redirect_uri=https://www.facebook.com/[APPLICATION URL]/?sk=app_[PAGE ID]&scope='; </script>"; But I'm getting an error: Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app

Long-lasting FB access-token for server to pull FB page info

拈花ヽ惹草 提交于 2019-11-26 12:34:49
I'm aware that there are many questions about Facebook access-tokens and the grief they cause, but despite much experimentation and reading many frustratingly vague blog articles (FB and otherwise), I'm still struggling to get a clear answer to my needs. Let me succinctly break down my process so far: I am creating a site that, server-side, needs to pull the posts/statuses from a single Facebook Page I am an admin of that Facebook Page I have created a Facebook App Using the Facebook Graph API Explorer , I've generated a short-lived key, connected to my app and my account, that grants