Been reading here for quite a while now.. But cant seem to figure out Facebook.
I certainly am not a coder, allways been more of a practical guy and learned as i go but.. this stuff i really cant figure out..
I’m making a fanpage applicaton – like a quiz or something.. Been using developers.facebook samples and arranging stuff on my own but .. cant get it to work..
What am i doing?
1. I would like to embedd a Multi-Friend-Selector in a fanpage as a “iframe” or allways visual or a popup.
Now i solved it by adding an input button that calls multi-friend-selector but when i choose friends to send an application request they dont get it? I’ve been trying for quite some time now but cant seem to make it work..
- Want to post to wall at the same time when users use my app.. Solved it with a button click that calls out a dialog to post to wall but could i embedd it with a “send” button or something?
Here’s my code;
“MFS;
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<p>
<input type="button"
onclick="sendRequestViaMultiFriendSelector(); return false;"
value="Invite Friends To Grobnik"
/>
</p>
<script>
FB.init({
appId : '338625489510276',
redirect_uri : 'http://www.facebook.com/TrackDay',
});
function sendRequestToRecipients() {
var user_ids = document.getElementsByName("user_ids")[0].value;
FB.ui({method: 'apprequests',
message: 'test',
to: user_ids,
}, requestCallback);
}
function sendRequestViaMultiFriendSelector() {
FB.ui({method: 'apprequests',
message: 'test'
}, requestCallback);
}
function requestCallback(response) {
// Handle callback here
}
</script>
“
But dont know.. am i suppose to add some permisions to my app settings? It’s really bugging me that Inviter show’s up but doesnt send out requests for the application
Thanks for all the help.. Really appreciate it and i’m really trying to learn
Try this code: