View Full Version : Login the user with Facebook without revealing the APP ID

11-18-2012, 08:22 AM
In the Facebook documentation about Login the user with Facebook APP they say:

"Because it requires you to include your App Secret you should not attempt to make this call client-side as that would expose this secret to all your app users. It is important that your App Secret is never shared with anyone".

I understend it is about APP Secret, but what about the Developer ID?
The developer ID is added in the URL address of the window for login the user with Facebook:

The APP_ID can be copied and used by anyone.
I tryed with JavaScript SDK, and with PHP SDK, but in both cases the developer ID appears in the address bar.
I tryed also the get and display the page from that URL address using cURL, but of course not works.
Is there any way to login the users in my web site using Facebook, without revealing the developer ID?
Or, it doesn't matter if someone uses your Facebook APP ID?

11-18-2012, 02:53 PM
The app ID can’t be used by anyone else because it is linked to a certain user account. At least that’s what I would think. Even though Facebook isn’t the vanguard of privacy measures it would be pretty stupid if one could just use another person’s app ID.

11-19-2012, 05:56 AM
you could try using iframes? not a very good solution for the problem because it's still very much available but at least it's not in the address bar.

11-19-2012, 01:06 PM
Thank you for the answer.
In the end I belive it doesn't matter because if FB made their APP to work in this way, they know how that ID can be used.
And I think it is the same ID that is already publicly.