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
Related
I have added the facebook recommend/like button in my application. All I want is when user click on the recommend/like button then the comments box should be pre-poulated with some default text.
Is it possible to do this? if so how can i achieve that?
If you're talking about a facebook comments box: its not possible. Checkout this: Facebook Like Button with prepopulated Comment
Otherwise, if its a custom comment box, this will need to be done via javascript SDK. Check out the documentation for subscribing to like events on a page here.
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 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.
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/
I want to add "share this on Facebook" to a page. I've got this working just fine using this URL format:
http://www.facebook.com/sharer.php?u=my.url.here
but the problem is, that's designed specifically to be a popup window, so
the page looks weird at full browser size
the buttons are a long way from the fields
after submission, the page has messages in it like "this window will close shortly"
So, is there a Facebook URL which can do the same thing, but which isn't intended as a popup?
Check out Facebook Connect
http://developers.facebook.com/connect.php
It is there new JS API...
The method you want to call when you get everything lined up is:
FB.Connect.showFeedDialog(bundle_id, post_data, null, null, FB.FeedStorySize.full, FB.RequireConnect.promptConnect, function (w) {alert('shared');});
facebook connect javascript SDK has been changed..
its here https://developers.facebook.com/docs/reference/javascript/
Thanks