views:

248

answers:

3

Facebook oAuth requires your secret key? I thought you weren't supposed to share that. Am I using the wrong secret key?

A: 

Are you talking about when your program requests an access token? If so, you need to supply the secret you're going to be using so it can be known by Facebook and associated with the access token they're issuing to you. Once you have your access token, you shouldn't have to send your secret to Facebook anymore...just use it to hash your API requests.

jasonjwwilliams
A: 

The api keys reside in php and you are not supposed to print them anywhere. Just use them to initialize the php facebook api. Here is tutorial i have written to write Facebook apps.

http://www.dreamincode.net/forums/topic/153919-facebook-php-api-and-xfbml-on-iframe/

Temek
+1  A: 

Your secret key is a shared secret between you and Facebook. Thus you can send it over secure channels (such as SSL)

Yuliy