Search code examples
facebookfacebook-graph-apiapprequestskoala

Adding a apprequest from user


I am trying to add an app request from a user using Koala/Omniauth

@graph = Koala::Facebook::API.new(current_user.omnitoken)
@graph.put_object("me", "apprequests", {:appid => MY_APP_ID, :to => USER_ID,  :message => "Come join me!"} )

I dont get any errors, but the request does not reach the user. Is the code correct/am i missing something?

Edit: The users I am inviting have not (yet) accepted the app, however the user that IS inviting have, is this possible to do or does it require a user-popup?


Solution

  • Users can use the dialog to send user-user requests to their friends who are not app users (edit: or to app users who are not their friends)

    Apps can use the API directly to send app-user requests to existing users only, not to non-users