Best practice for implementing "tab support" in facebook App - php

I started to stumble Facebook App development and can't get my Application to be added as a tab in the fan page, I think my Application should have a support for being able to be installed as a tab? what is the best practice the one I found on docs - Profile.setFBML method, but they are saying that it will be removed soon, can't get what is the alternative =) , so how should I implement the tab support for my App

Just make a page which returns correct FBML page(FBML+allowed HTML tags), then set address of that page in your application settings in tab url. like this:
http://yoursite.com/facebook/profiletab

Related

Facebook Auth Dialog - Adjusting the text displayed

Just wondering if someone could point me in the right direction of how to change some text on the Facebook Auth Dialog. I've attached a screenshot of the information I wish to change, which I know is possible as I've seen it done on applications such as the Pinterest app.
Can't seem to see that section highlighted anywhere on! https://developers.facebook.com/docs/opengraph/authentication/
Thanks in advance.
The Auth Dialog uses an iFrame/separate window and therefore cannot be manipulated (design wise).
If you are simply changing permissions and text etc then use the app settings and the Auth settings here:
https://developers.facebook.com/apps
If you actually want to redesign the screen then your only option would be embedding the Facebook iFrame on top of your content and making it transparent (not good practice). The Auth dialog must be hosted on Facebook's server for many reasons, therefore I am certain this cannot be done without ugly workarounds.
UPDATE
It seems that you would like to change the permissions that your application requests. This is is very easy using the HTML for your login button. Just add this to your element:
scope="user_about_me,publish_actions...(any other permissions you want)"
However, I fear that you may want to take this a little further and actually display things like this:
This app shares routes you ran, loops you ran and other activity on
Facebook
Although this is pretty simple to implement using the Open Graph to add 'actions', you cannot simply write out the text. It generates it for you based on what actions you have.
Is this what you are looking for? If so, I will explain in more detail how you can achieve it
You can change the copy on the Dialog from the the app settings on Facebook. Settings-> Auth Dialog.

Can my website post to Facebook?

I have a PHP based website which has a post/comment system. Can I add a checkbox to my post function so that if it is checked the post will be published to Facebook as well as my own website at the same time?
I have looked through the docs on facebook and I saw a comment plugin, but it's not really what I am looking for.
I would appreciate a tutorial, links, code, or just general help.
If you're looking for a way to replicate the auto-posting functionality in the fb:comments plugin, the only way to accomplish that is asking the users to install an app. By using the sandboxed fb:comments social plugin, Facebook controls the user experience, so users can post to their wall without an install. If you use your own method though, you'll need to require an install (and publish_stream permissions).
I'd recommend using fb:comments if at all possible, since that creates less friction for your users and will be a more familiar experience for them. If you wish to do something with the comment as it's added, you can subscribe to the comment.create event.
May be you can use the Feed Dialog have a look: http://bit.ly/rQWC36
You can launch the dialog if the checkbox is checked, after submit the comments form.
Or may be you can use the OpenGraph API versiĆ³n of the feed dialog, look for the section: "Graph API Equivalent" documentation doesn't sais nothing about permission on using that dialog this way. I hope it helps.
I am still unsure of what you are looking for but still facebook api is a good place to start off. A part from that, the checkboxes and automatically going to facebook that you have referred will be done according to your language/framework which you have not illustrated.

How to create a page tabs without iframes now in Facebook?

is it possible to create a page tab without iframes in Facebook now? -how to add a tabs using FBML?
Facebook has already deprecated page tabs using FBML, iframe is the only method now. This is mentioned on their developer roadmap:
We will stop allowing new FBML apps,
but will continue to support existing
FBML tabs and apps. Instead, we
recommend using iframes.
You can do that as long as your application is sandboxed.
In your application setting on Facebook:
If you enable "Sandbox Mode", the lower config will be available. However, this is not the way you should be building apps today. Iframes and web standards are the way to go.
Now, my question is, why do you want to do this?

Rendering newsfeed as per Facebook user interface

I am developing a facebook application that fetches the newsfeed of the logged in users and renders it. Currently, I am using iframe and I use PHP SDK to call the Graph API to fetch the posts and render them (generate on server side via PHP). To emulate the facbeook like look and feel, I mimicked their styles on which I am somewhat successful but not very much.
I am wondering is there a way in Facebook API to do the same for me? I read about the FBML but there is a deprecation warning along with a notice that they are gradually moving things towards their Javascript SDK.
Any ideas?
Well, you are narrowed to what XFBML (The Javascript API) offers you.
I had the same problem a while ago and this site saved me - http://devtacular.com/articles/bkonrad/how-to-style-an-application-like-facebook/
There are some basic styles that are used by facebook.
Good luck.

Can you use the Facebook API to update a Page (rather than a Profile)?

As far as I can tell you can't add the Developer package to a Pages account - as in I haven't got a Facebook profile.
It's for business purposes and I'd really like to know if you can use the Facebook API to update a Pages status.
Thanks :)
Yes its possible although not officially documented.
Pageids behave in many function calls very similar to profileids.
You dont need to add the developer app to a page - remember: you neither need your users to add it.
I am pretty sure that the Stream API wont work. But you can do the approach described at http://www.allfacebook.com/2009/04/public-profile-twitter/
If you are not into Development and simply want to update your page you can use your twitter account and add a hashtag to sync it to your facebook page with Selective Twitter.
http://www.facebook.com/apps/application.php?id=115463795461
Update: as pointed out below http://ping.fm is also a good service offering this feature

Categories