How to use facebook user dialog like this example

How to create your own dialog box like this:

alt text

I am using an iframe application with api / new js-api graphics, but I cannot figure out how to reproduce this, buttons and title, save custom language.

Sincerely.

+3
source share
3 answers

I suspect they are making their own modal dialog using something like the jQuery Facebox plugin at http://defunkt.io/facebox/

They also seem to violate Facebook rules by using an unapproved advertising agent (AdBrite) on the canvas page.

+1
source

:

var dialog = FB.Dialog.create({
content: '<div style="color: rgb(255, 255, 255); background-color: rgb(109, 132, 180); font-size: 15px; font-weight: bold; padding: 5px; text-align: left;">Error</div><p style="margin:10px 15px;">' + message + '</p><div style="color: rgb(0, 0, 0); background-color: rgb(242, 242, 242); padding: 8px; text-align: right; border-top: 1px solid rgb(198, 198, 198);height:23px;"></div>',
closeIcon: true,
onClose: function() {
    FB.Dialog.remove(dialog);
},
visible: true
});

. : http://fbdevwiki.com/wiki/FB.Dialog

+1

You need to use a method FB.uito open a dialog like this. You can find sample code and more details here .

0
source

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


All Articles