Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Graph API and app secret

I have an iOS application that I'm logging to Facebook to ask for an access_token.

Then I pass this access token to my server and I want to get the '/me' information, using my appsecret_proof but I noticed that I can do it without appsecret_proof:

curl "https://graph.facebook.com/me?access_token=THE_ACCESS_TOKEN"

{"id":"658267751","name":"Ricardo Otero",
"first_name":"Ricardo","last_name":"Otero",
"link":"https:\/\/www.facebook.com\/oterosantos",
"hometown":{"id":"107911285910314","name":"Coimbra, Portugal"},
"location":{"id":"110432202311659","name":"Lisbon, Portugal"}...

Although I have set the option "App Secret Proof for Server API calls" to true:

facebook settings

So, shouldn't the requests require the app secret? I don't get it!

like image 870
rikas Avatar asked Nov 01 '22 03:11

rikas


1 Answers

Every access_token depends on app and user so for different app and user combination you will have different access token so you don't need to worry. though I am no sure why are you doing it this way http://m-farhan.com/2014/03/ios-facebook-sdk-tutorial/ is the right way of doing this.

like image 122
m-farhan Avatar answered Nov 12 '22 11:11

m-farhan