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

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?

Related

Social Log In Authentication. Possible in iFrame

I have reverse engineered a social login framework to use frames instead of popup windows. It is working but appears that the authentication content will not display.
I wondered if maybe this was deliberate from the social network provider as I cannot find a mistake in my code.
EDIT.,,
I have been told that this deliberate to prevent a cyber attack. Pop Up window are monstrously ugly though and terrible on mobile devices. Is there a replacement that can work. Since iFrames cannot is there another way of keeping it seemingly inline to the page.
If you want to make it seamless, then you'll need to look at an alternative approach altogether. Most of these social networks (twitter, facebook etc) have api's that allow you to connect and login "in code" rather than just OAuth from your page.
That's the only way you can reliably avoid the dreaded popup.

Use data of own database in facebook application

I want to develop a Facebook application which shows the data from database from my own server.
I have found one question here : Can you use your own database for Facebook applications?
But like above question I don't want to use iFrame to show my content on Facebook application.
Any solution for this as, I am new to Facebook application development.
Edit:
Simplified version: I have a page in my server which generate xml feed of the product. So can I read this xml feed url in facebook Application?
Almost all applications use an iframe to display the actual app, I don't think you'll be able to avoid it. What you put into that iframe however is entirely yours. It runs from your server, and so can use whatever back end you prefer.
Why don'T you want to use iFrame? FBML & Iframes are only ways you can show your content with !

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.

Best practice for implementing "tab support" in facebook App

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

support new facebook API instead of $facebook->api_client->profile_setFBML($profileContent);

I looked at Facebook page, and they not supported with the PHP Api:
$facebook->api_client->profile_setFBML($profileContent);
can anyone help me with another possible API to use.
Thanks
The profile.setFBML method is deprecated, and about to be phased out entirely. You won't be able to use it anymore, and indeed, there is no point, since the profile boxes are going to cease to exist as well.
You are going to have to migrate whatever it is you're doing to Application Tabs instead. It will be the only way to put application content into a user's profile very shortly (timeline is "Early 2010").

Categories