the method used to trigger different forms of Facebook created UI dialogs.
Questions tagged [fb.ui]
162 questions
90
votes
9 answers
Send private messages to friends
I need to get via Facebook connect user's info and send a private message to all of his friends. Is it possible?

yspro
- 1,658
- 1
- 17
- 21
49
votes
5 answers
Using "share_open_graph" Facebook UI to create dynamic share dialog for quiz results
Summary: My problem is getting FB.ui, via the share_open_graph method, to create a customised share dialog that contains different title, description, and picture, based on the user's actions on the page.
The question was my first and I had no…

Matt Morrison
- 1,540
- 1
- 14
- 19
37
votes
2 answers
FB.ui feed dialog is "ignoring" the picture attribute, using cached og:image tag instead
Here's my FB.ui code:
FB.ui({
method: 'feed',
message: '',
link: 'http://mywebaddress/pathToContent',
picture: 'http://mywebaddress/pathToPhoto/photo.jpg',
display: 'popup'
});
The dialog pops up perfectly, it has the link so no…

Chaddeus
- 13,134
- 29
- 104
- 162
11
votes
6 answers
FB.ui share set the title, message and image
I'm using FB.ui to share a page to Facebook and I'm trying to set the title and message (image if possible but not important). I have this in my site header

TMH
- 6,096
- 7
- 51
- 88
10
votes
1 answer
Any workaround to avoid "unsupported browser ..." when trying to use FB.ui on chrome on IOS
I am getting an "unsupported browser: chrome for ios doesn't support this feature. Please use safari and try again" when trying to open a share dialog by using the FB.ui API on an iphone.
I guess this question is related Facebook OAuth…

Mark Kaplun
- 276
- 2
- 13
10
votes
3 answers
FB.ui send dialog box not working on iPhone
i'm having troubles at creating a FB.ui send dialog box when my web app is running on iPhone. Here's the code snippet, in javascript:
if(navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPhone/i)){
window.top.location =…

msantos
- 101
- 1
- 4
7
votes
1 answer
How can i use multi hashtags on facebook
I am using fb.ui to share on facebook whith a hashtag
FB.ui({
method: 'share',
href: url,
hashtag: '#TestHash1'
}, function(response){
});
How can I send 2 hashtags? I have tried each of the below but they do not work.
hashtag:…

luay
- 71
- 1
- 2
6
votes
3 answers
FB.ui feed dialog requires redirect_uri, dialog does not close
I am trying to open a feed dialog using the JS SDK's FB.ui method and have it close after the user shares. My problem is the feed dialog is requiring a redirect_uri even though the documentation says it doesn't have to be defined, and the popup…

Jeremy Schultz
- 579
- 1
- 6
- 26
6
votes
1 answer
How to upload video on facebook using FB.ui Javascript sdk
I'm using FB.ui method to post image to facebook as described below:
FB.ui({
display: 'popup',
method: 'feed',
name: 'image',
link: 'link',
picture: 'image path',
caption: 'caption',
description: 'description'
},…

Shivakumar P
- 113
- 1
- 7
6
votes
2 answers
Method FB.ui loads forever when called on Firefox and Internet Explorer
I have problem in a script that was working until 3 or 4 days ago.
I'm using this (simplified version) code to send an app request to a user and it was working until few days ago, now it seems that something in facebook has changed and the window…

ollie10
- 317
- 2
- 11
6
votes
3 answers
Facebook share via FB.ui
I am trying to use the following code that I wrote based on the new documentation for showing a "post to feed" dialog (https://developers.facebook.com/docs/javascript/reference/FB.ui) but i get the following error "ReferenceError: FB is not…

Andreas Traganidas
- 497
- 1
- 6
- 13
6
votes
0 answers
Invalid App Id: Must be a number or numeric string representing the application id
I am building facebook iframe app. When I load this section of code on browser.
In browsers console I seen the following to Errors
FB.init has already been called - this could indicate a problem
Invalid App Id: Must be a number or numeric string…

Mehakpal Singh
- 146
- 1
- 2
- 11
5
votes
4 answers
Facebook JavaScript Send Dialog, callback function works incorrect
I'm trying to execute callback function in FB.ui (send dialog). It called in same moment when loaded FB.ui but I want execute callback function after pressing 'send' or 'cancel' button. Is it realizable?
function callback(response) {
…

Al Puz
- 53
- 1
- 4
5
votes
0 answers
FB.ui method share does not return callback when using Facebook Mobile Browser
let promise = new Promise((resolve, reject) => {
FB.ui({
method: "share",
href: href,
ref: ref,
hashtag: hashtag,
quote: quote
}, function (response) {
console.log(response);
…
5
votes
1 answer
Facebook stops custom parameters (image,title,description) through FB.ui?
Today I check my site and this code not working: