Facebook Request Dialog 2.0

313 views
Skip to first unread message

vhochstein

unread,
Mar 3, 2011, 9:23:28 AM3/3/11
to Koala & The Facebook Graph API
Hi,

does koala support sending an automatic Request Dialog according to
the 2.0 Request Dialog?

An example would be great.

thanks a lot in advance..

--
Volker

Koppel Alex

unread,
Mar 11, 2011, 5:55:04 AM3/11/11
to koala...@googlegroups.com
Hey Volker,

Using the newest Koala beta, you should be able to do everything described in the blog post describing the new Request system (http://developers.facebook.com/blog/post/464/).  The flow should go something like this:
* to get the app's access token, use the OAuth#get_app_access_token method (see https://github.com/arsduo/koala/wiki/OAuth)
* create a GraphAPI object using the app access token (let's call it @graph)
* to create the app request, use the new GraphAPI#put_connection method -- something like @graph.put_connection(user_id, "apprequests", :message => your_message, :data => your_data)
* reading the request should just require a call like @graph.get_connection(user_id, "apprequests")

I haven't had a chance to try this out yet, so let me know how it goes.  If that works we might add it to the wiki as an example of using put_connections :)

Best,

Alex

--
You received this message because you are subscribed to the Google Groups "Koala & The Facebook Graph API" group.
To post to this group, send email to koala...@googlegroups.com.
To unsubscribe from this group, send email to koala-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/koala-users?hl=en.


Atastor

unread,
Mar 30, 2011, 5:47:05 AM3/30/11
to Koala & The Facebook Graph API
Well..using your suggestions I am getting

Koala::Facebook::APIError (GraphMethodException: Unsupported post
request.)

*THINK*

Regards
Michael

On 11 Mrz., 12:55, Koppel Alex <a...@alexkoppel.com> wrote:
> Hey Volker,
>
> Using the newest Koala beta, you should be able to do everything described in the blog post describing the new Request system (http://developers.facebook.com/blog/post/464/).  The flow should go something like this:
> * to get the app's access token, use the OAuth#get_app_access_token method (seehttps://github.com/arsduo/koala/wiki/OAuth)

Atastor

unread,
Mar 30, 2011, 6:54:17 AM3/30/11
to Koala & The Facebook Graph API
Well...***COUGH***...this boarders thread-jacking...Sorry!

Seems it works as you suggested!

Regards
Michael

Alex Koppel

unread,
Mar 31, 2011, 6:28:23 AM3/31/11
to koala...@googlegroups.com, Atastor
Hey Michael,

I'm glad it worked!  Let us know if we can help with anything else.

Best,

Alex

2011/3/30 Atastor <mic...@portzblitz.de>

Atastor

unread,
Mar 31, 2011, 7:05:26 AM3/31/11
to Koala & The Facebook Graph API
Ah..its mostly me vs. Facebook, hardly ever me vs. Koala, but
thanks ;-)

Best Regards
Michael

On 31 Mrz., 12:28, Alex Koppel <a...@alexkoppel.com> wrote:
> Hey Michael,
>
> I'm glad it worked!  Let us know if we can help with anything else.
>
> Best,
>
> Alex
>
> 2011/3/30 Atastor <mich...@portzblitz.de>
Reply all
Reply to author
Forward
0 new messages