0

I am using the Facebook JavaScript SDK in my web app. The following function will be invoked when I click on a Facebook invite button

facebookInvite: (e) ->
  e.preventDefault()
  FB.ui
    method: "apprequests"
    message: "Become my Buddie"
    filters: [ "app_non_users" ]
    title: "Become my Buddie"
  , (response) ->
    if response and response.request_ids
      $howManyInvites = String(requests).split(",").length
    else
      false

Everything seemed to work fine i.e popup appears with my friends list

enter image description here

However, after clicking on 'send request', I only see a blank screen popup

enter image description here

Also, the request did not seem to go through at all.

Anything I missed out in my implementation?

Juicy Scripter
  • 25,778
  • 6
  • 72
  • 93
Zhen
  • 12,361
  • 38
  • 122
  • 199

1 Answers1

0

The apprequest dialog only works for canvas apps...

Daniël Zwijnenburg
  • 2,550
  • 2
  • 21
  • 28