javascript - Notification not sending to facebook friend -


I have created an application, where I am trying to invite friends through Facebook inviting friends JS method , But all are working fine, but no information was sent

My code:

My code:

  & lt; Script src = "http://connect.facebook.net/en_US/all.js"></script> & Lt; Script & gt; FBP ("/ m / invertative-friend", function (reaction) {If (response & amp;; reaction panic) {/ * handles result}}}; if (top.location! = Self.location } {Top.location = self.location} FB.init ({appId: '228877127299395', cookie: true is, position: true, xfbml: true}); function incentivesfree (FBUI {{method: 'praise ', Message:' Join my job buddy '}};} & lt; / script & gt; & lt; a href =' # 'onclick = "FacebookInviteFriends ();" & gt; & lt; div class = "Connectbutton5" id = "ol" & gt; invite friends & lt; / div & gt; & lt; / a & gt;  

App requests are for games only, which may be the reason and always use a callback function to handle the error, you may find an error Remembering:

  FB.ui ({method: 'apprequests', message: 'YOUR_MESSAGE_HERE'}, function (feedback) {Console.log (response);})  

In addition:

The inviting_friends API is available only for games that have a Facebook canvas app implementation, Uses version 2.0 of ii.

Source:

If you want to invite someone to a website, use the Send and Share dialog and button to authorize the user for them. Not even required.


Comments