Topic-icon Facebook share page shortcode not working

Active Subscriptions:

None
Hi Alex,

Tried on chrome and it seems to load tags when FB.XFBML.parse(); is used. but intermittent of firefox. But my main issue is having a checkin button. i have looked at the fb.api code:
/* make the API call */
FB.api(
"/me/feed",
"POST",
{
"message": "This is a test message"
},
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
the problem i have is that the code doesn't work if called in a normal javascript function. All the examples i've seen have these kind of funtions are within an fbAsyncInit function. But i don't want the post load when the page loads but via an onclick. No error is produced , the post dialogue is not produced and nothing happens.

Any ideas?
The topic has been locked.
Active Subscriptions:

None
Hi Alex,

Please ignore my last post regarding javascript. It appears that the feed function sends a silent post. So not showing a dialogue box. How can i get it to show the dialogue box?
The topic has been locked.
Support Specialist
11 years 2 months ago #52107 by alzander
The "Checkin" API doesn't have it's own dialog box. It's something you'd have to create on your own. You'd need to have a button or popup that says "Checkin?" and when the button is clicked, then you trigger the Javascript you show above. It's a lot more flexible this way as you can customize the look and feel of the interface for checking in, but obviously a bit more work than the Share or Like button which comes with everything you need already.

I hope that helps explain, but if you need anything else, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Thank you,

That has pointed me in the right direction.
The topic has been locked.
Support Specialist
11 years 2 months ago #52123 by alzander
Awesome! Glad to help, as always. If you come up with something awesome, or have any feedback on how we could implement something that would make things easier for you in JFBConnect, please let us know :)

Thanks,
Alex
The topic has been locked.