Invite friends to a website app (FB.ui apprequests)

I have a problem creating apprequests for my web application. I can send an invitation with the FB.ui method "apprequests", but this request does not appear on Facebook. It seems to be blocked because it calls the notification icon, but disappears in the second notification.

I found a workaround. I install the application as well as the canvas and redirect from the canvas to the website page. But I do not know if it will be blocked or something in the future.

What is the recommended method for sending application requests from a website application?

+4
source share
3 answers

From my experience and reading , the Facebook Developer's Guide seems to have a Canvas for your Facebook app, so requests are displayed as notifications.

I am trying to solve a problem in which these notifications appear on the Facebook website, but not on the Facebook pop-up notification of the Facebook client.

+5
source

I personally use this code that works:

FB.ui({method: 'apprequests', message: 'my message'},function(response){'my callback'}); 

Hope this helps you.

+3
source

After some research and testing / errors, I found that you should use the canvas.

So, so that my users are not on the canvas and on my website, I created a static landing page with a large hyperlink to the "Get Started" button with the tag "target = '_ blank". This opens my site in a new browser window. Then I used this static landing as my “CanvasURL / Secure Canvas URL” for my “Facebook app”

0
source

Source: https://habr.com/ru/post/1390478/


All Articles