Topic-icon FB Page Tab Dialog

Active Subscriptions:

None
12 years 4 months ago - 12 years 4 months ago #40569 by eileenod
FB Page Tab Dialog was created by eileenod
I have created a FB Canvas app and it's great! No problems worked just as advertised with little effort. I'd like to know if I can accomplish a particular task.

I would like to create from FBConnect a Facebook Request where once it is accepted by a user on Facebook, they are shown the "The Add Page Tab Dialog" which prompts a person to add an app to a Facebook Page that they admin. This does not require any extended permissions developers.facebook.com/docs/reference/dialogs/add_to_page/

Can this be accomplished?
Last edit: 12 years 4 months ago by eileenod.
The topic has been locked.
Support Specialist
12 years 4 months ago #40576 by alzander
Replied by alzander on topic FB Page Tab Dialog
Hmm.. it's an interesting question that we haven't heard of. The way you'd likely do that is to setup a specific page on your site to host the add to Page Tab popup. In that page, create a custom Javascript module. We'd recommend using something like Flexi Custom Code (which is free and allows for Javascript). in that module, add:
<script>
jQuery(document).ready(function(){
  FB.ui({
    method: 'pagetab',
    redirect_uri: 'YOUR_URL'
  }, function(response){});
});
</script>
Then, add that module to the special menu item you created in Joomla. That Javascript should automatically show the Add To Page popup whenever a user visits it. The YOUR_URL could be a good place for a separate "Thank you" page for the user that just added your App.

Test that page. Once it works, create a notification with a redirect URL to the page you created. Send and anyone that receives it should go to that page where the popup automatically appears.

I haven't tested that, and can't guarantee it will work, but hopefully it gets you started.

Should you have any other questions, just let me know!

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

None
12 years 4 months ago #40581 by eileenod
Replied by eileenod on topic FB Page Tab Dialog
Thanks! That gets me started --- maybe done, I hope ;)
The topic has been locked.
Support Specialist
12 years 4 months ago #40591 by alzander
Replied by alzander on topic FB Page Tab Dialog
Awesome... glad we can hopefully get you going. Please post back on how you do or if you need more assistance or run into problems.

Thanks, and good luck,
Alex
The topic has been locked.