CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   General web building (http://www.codingforums.com/forumdisplay.php?f=10)
-   -   Login the user with Facebook without revealing the APP ID (http://www.codingforums.com/showthread.php?t=282486)

MarPlo 11-18-2012 07:22 AM

Login the user with Facebook without revealing the APP ID
 
Hi,
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:
Code:

https://www.facebook.com/dialog/oauth?client_id=APP_ID&redirect_uri=...&state=...&scope=...
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?

VIPStephan 11-18-2012 01: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.

kevin619 11-19-2012 04: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.

MarPlo 11-19-2012 12: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.


All times are GMT +1. The time now is 11:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.