I'm going to create a Facebook application which get informations (name and *page_url*) about Facebook page from his *page_id*. So i went to the Facebook Wiki and i found this API method which sounds good at first look :
http://wiki.developers.facebook.com/index.php/Pages.getInfo
My only wish was that i wouldn't pass a session_key parameter because i don't want to force the facebook user to install the application. (You know the "allow application" page or popup).
But the description says :
*"The session_key parameter is optional. When the session_key parameter is not passed, you can get information only for Pages that have added your application."*
So no problem, exactly what i'm looking for !
But after a try, i get this error :
"102 The session key was improperly submitted or has reached its timeout. Direct the user to log in again to obtain another key."
Normal, because i don't pass the session_key parameter.
I'm using Rails + Facebooker plugin. So i try this methods in my console without success :
>>Facebooker::Session.create.pages(:fields => ["name", "page_url"], :page_ids => "123456")
=> []
>> Facebooker::Session.create.fql_query("SELECT name, page_url FROM page WHERE page_id=123456")
=> []
*(of course, the page with page_id="123456" has installed my application)*
Someone knows how to get information about a page but without the needed of passing a session_key parameter ?
I know it's possible because i have already saw a facebook application retrieve information about a page without ask user to install his application.
Thank in advance all.