I'm trying to use Facebook's JavaScript SDK to let users send a link to another user, i.e using FB.ui(data, callback)
. console.log( data )
gives this output:
link
"http://example.com/something/y3k62pg3t4"
method
"send"
to
"10000xxxxx(omitted)"
The issue is, this is able to display the facebook send dialog correctly (i.e the dialog opens, friend's name is pre-filled, link is selected showing the correct url, thumbnail, etc). However when I click send, the callback function is never called, and the friend also never receives the PM.
However if I change the url to google.com, then both things work, i.e callback is called and PM also gets sent.
Any ideas on what's wrong?
Edit:
This is what I've found. If I have a Facebook app linked to a domain e.g example.com, then from that app I can send links to any site EXCEPT example.com. So it seems like an anti-spam measure put in place by Facebook.
Can someone confirm that they're able to send links from the same domain name that their app is linked to, or if they also experience this issue?