Can we get facebook app id and app secret with access token? - facebook

Am trying to get the fb reports, better way is to use facebook internal functionality to get reports. But for that i need app id and app secret, i have access token with that token is it possible to fetch app id and app secret?

Related

How to model Facebook access tokens and user accounts

I'm building an app that allows users to sign up with facebook login. Facebook login gives us an expiring access token.
So far I've thought through having the phone app collect the facebook access token itself and it should POST it to the api. The api can search to see if it's seen this token before and if it hasn't the api should generate a new user account.
However the facebook docs mention that this token expires. If a user's token expires and they provide a new token to my api, the api will generate a new account for the existing user. How should I solve this?
Use the access token to access https://graph.facebook.com/me?fields=id, which will give you the user's unique ID for your application. Use that as the primary key.
You can try this out with the graph explorer tool https://developers.facebook.com/tools/explorer/
You'll get a response like
{
"id": "10123455041265200"
}
Docs https://developers.facebook.com/docs/graph-api/reference/user/

Is there a way to retrieve Facebook APP credentials using Facebook App id and Facebook App secret?

I have created an facebook app long time ago and integrated it with salesforce through Oauth , using App id and App secret provided by facebook app.
Now,I have lost my Facebook app credentials but have App Id and App Secret. So is there any way to retrieve my facebook app login credentials using AppId and App Secret. I dont even remember the email Id or App name, I used to create that Facebook App.

how do I use new App ID & secret ID without affect the existing access token

First, I have use Facebook App ID & Secret ID, then Login with Facebook and get Access token,
I have changed the my Facebook App ID & Secret ID, but, affect the existing user Access token.
How do I get new Application Access token without Login with Facebook?
Changing your App ID effectively means you've created a new application. Since the access_token is tried to a particular App ID and Secret combination, you cannot transfer existing users over to the new App ID. Furthermore, Facebook Platform Policies does not allow sharing of user information between different application - you'll just have to get users to login into the new application.

facebook mobile access token

In one of our FB app on mobile, we want to store the FB Access Token on to backend to be able to:
extend the access token to long lived
use them to do certain tasks on behalf of user from our backend server
Is it possible to do these using app tokens obtained using fb js sdk?
Thanks,
Janar

Get access token with appid and userid

I have a facebook app. id and a facebook user id, I need to retrieve the access token for such a user. How could I do that?
Cheers.
It is not possible to generate a user access token using simply an application id and secret you must go through a login flow.
https://developers.facebook.com/docs/facebook-login/