I have been trying to implement the Facebook Feed Dialog as follows
<a href="http://www.facebook.com/dialog/feed?app_id=12345678&redirect_uri=http://example.com&link=http://example.com&message=Hi+wassup!">
But the problem is it is opening the link in a page, rather than a pop up box.
Pls help!
To do this as a dialog, you would need to use the Facebook Javascript SDK and call the FB.ui function using the 'feed' value for method.
Related
on my webpage I have integrated the Feed Dialog using the JavaScript SDK. It works all like a charm, except when I'm using Facebook as a page.
I get this error message:
You are using Facebook as myPage
To access this page, you'll need to switch from using Facebook as your page to using Facebook as yourself.
I already tried to change the from and to parameters, but with no luck.
Is there any way to post a story on a page with the Feed Dialog?
Unfortunately this dialog is not supported when you are using Facebook as a Page. Please use Graph API -> Post (https://developers.facebook.com/docs/reference/api/post/)
You can in fact do this. Just follow the instructions as it says and switch to using Facebook as yourself.
Then when you share as yourself, you can choose to share it to a "Page you manage" using the dropdown in the top-left.
Is it possible to show users custom message with a single OK button in a Facebook-style dialog box, say, in an iframe app? Is this dialog box available in the Facebook (Javascript) API?
Example:
I don't believe that Facebook allows you to display dialogs outside the ones listed in the FB:Dialog documentation on their webpage.
However, this should be possible to implement yourself. Download a copy of the Facebook.js SDK, and look for the code where it draws the dialog. You could then use this wherever you want to draw as many Facebook-esque dialogs as you like!
Edit: This thread from the Facebook developers forum has some good stuff on already-developed FB.ui lightbox clones: reuse facebook lightbox JS
I have a ready facebook application that should be linked to a facebook page. I am trying to link the canvas url of my application to a button in the page with the help of javascript by calling:
function onBtnClick() { window.location = "http://apps.facebook.com/CANVAS_URL/"; }
When I click the button that is supposed to take me to the app I get only an empty page with a blue box and "Facebook" string inside it (pretty much looking like the facebook logo)
This box is a link to my application and if clicked takes me to http://apps.facebook.com/CANVAS_URL/
The same problem occurs in the application, where I try to link the facebook page. The link there is a regular <a> tag.
Do you have any ideas how to redirect to an app without this additional "Facebook" page?
Thanks in advance,
Martin
Use this instead:
top.location.href = "http://apps.facebook.com/CANVAS_URL/";
You need the upper frame (Facebook) to redirect.
If using a simple <a> html link, try target="_top"
I'm trying to use the Facebook Javascript UI method to show a friend selector dialog. However, because my app doesn't actually send invites to the selected friends, the text of the submit button is "Send Requests" is very misleading. Is there anyway I can change this text while still using a Facebook API?
I'm using
http://developers.facebook.com/docs/reference/dialogs/requests/
and have also tried
http://developers.facebook.com/docs/reference/fbml/multi-friend-selector/
I think that including fb:req-choice into the FBML of your UI could do the trick.
Example code can be seen here:
Showing popup in the new Facebook JavaScript SDK
I'm developing facebook game, that using iFrame.
How to show popUp invite Friend ?
Thanks so much
I'm assuming you're using the Javascript API within your iFrame. You can write some FBML to create the friend invitation dialog. See the example here:
http://developers.facebook.com/docs/guides/canvas/#requests
If you want a popup you may have to use the FB.ui method:
http://developers.facebook.com/docs/reference/javascript/FB.ui
You'll want to use the Requests Dialog.
http://developers.facebook.com/docs/reference/dialogs/requests/