FB.api({user-id},
{
"fields":"context",
"access_token": anAccessToken
}, function (response) {
console.log(response);
})
I am currently retrieving mutual friends using the context parameter. However, I need to provide both the app_scoped_userid and my access token from OAuth in order for this to work.
I am hesitant about including these strings in my client-side code because someone could potentially misuse them to access any data that the user has granted permission to my app.
Is there a more secure solution available? (I have considered moving the API call to the server side, but it goes against the lightweight client-heavy server structure that I am aiming for.)
Should I be concerned about the security implications of this setup?