views:

593

answers:

2

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.

A: 

This thread on developers.facebook.com could help you http://forum.developers.facebook.com/viewtopic.php?pid=147246#p147246

rampr
Thanks, but this thread talking about sending notification in a batch process. There is no information about getting information from a Facebook page without session_key.
Mathieu Fosse
that code in that link above can be run on any personal computer, without a session key. You could see how they do it.
rampr
A: 

Ok, after some try out, i can say that the API method "Pages.getInfo" when it called without session_key seems to return ONLY pages already PUBLISHED.

And of course, pages that i want to get information might be UNPUBLISHED... too bad.

Any chance to retrieve a page url from a unpublished page ?

Mathieu Fosse