I have create a j2me game, now i want to embed Facebook in my App's home page.
so, what should i do for it ?
It is possible to embed facebook content into non web applications by making use of HTTP API provided by Facebook. For this you will need to sign up as a facebook developer and use those credentials to access the content. More information can be found here:
http://developers.facebook.com/docs/
Let us know if you have any specific question.
Related
I am trying to create a functionality and load on Facebook, the page will be load as "apps.facebook.com/appname". Can we use "Facebook Web Games" to load our application on Facebook.
In earlier days i have placed the webpage URL in the Facebook Canvas URL. But this feature doesn't exist on Facebook.
Anyone help me with this?
Can we use "Facebook Web Games" to load our application on Facebook.
Facebook Web Games is what used to be called the Canvas platform.
Facebook just renamed it, after they decided to use the “Canvas” name for their new advertising format.
So yes, you just put the URL of the page you want to display under apps.facebook.com/appname in the Facebook Web Games settings.
(This is not limited to games, despite the naming. If you want to show other content that way, that is fine as well.)
This is a first time I am trying to make a facebook application/game, and I have couple of questions.
Let's say canvas url is http://mysite/first_app/ and facebook app url is https://apps.facebook.com/first_app
I wonder if visited both url-s should a functionality be the same? I mean does facebook give you more tools and freedom if navigated from https://apps.facebook.com/first_app? Or should both url-s look and do the same thing? Is it possible?
I wonder if visited both urls should a functionality be the same
Of course yes. The difference is just that one is deployed at the facebook's app center and the other at your domain.
Yes, you have more tools available in the canvas ("apps.facebook.com.."), as it will send you the user-id without any user consent. Has the user previously used your app, you will also be able to get their accesstoken and fetch more info about them.
It requires some backend code to decode the signed request parameter, which provides you this stuff.
This example is how php handles signed request:
https://developers.facebook.com/docs/facebook-login/using-login-with-games/
If you're using C#, download the Facebook C# (available through NuGet, the package from Outercurve Foundation) and use this example:
How do I parse a signed request in Facebook C# SDK?
I try to handle the user in Facebook context whenever possible. It adds trust and more tools. Although since the Facebook phone/tablet app (App Store/Google Play) doesn't support Facebook apps at all, I often optimize the app for mobile web use also. I read somewhere that over 50% of daily Facebook visists are done using the phone app, so it might be something to think into your app while developing.
UPDATE:
I can see I have misunderstood part of signed request, as commented by Shadowfax and CBroe. In my app, I use the user id from signed request but of course only when the user has already logged on to the app beforehand. My apologies.
I need to share a text in Facebook from my J2ME app. Is there any Facebook API available for J2ME?
Hi there are some approaches in below link
http://j2megroup.blogspot.com/2011/06/facebook-api-me-10-tutorial.html
But we preferred to do it another way. We have written some services(helpers) which connects to Facebook over php sdk. And we have used our simplified services. But this might require to have an application in Facebook side.
There are no free libraries to do this. You can use Facebook APIs to do this.
I have a simple Google Gadget that shows products from a Zazzle Storekeeper's store. I'd like to make this available to those storekeepers on their own facebook wall / tab. Is this possible? It doesn't need access to any of their Facebook info other.
Facebook Page Apps are at their core just simple iFrames which can load any other URL on the internet into them. Read more about Apps on Facebook.com and ensure that what you're doing complies with Platform Policy and it should all be pretty straightforward.
How to connect to Facebook using the downloaded Facebook app, and not the embeeded Facebook connect. This is done for example with Rockmelt app.
What seems to be done, is to launche a third party app using the url like (fb:some paramaeters) and having a callback url with your app (myapp://authentification parameter ).
The interest of this is that if you are already logged on facebook, you just need to approve or not your app.
What is missing, is what are the parameters to acheive this with the downloaded facebook app.
Just use the supplied Facebook Connect library as it handles all this for you. FBConnect by default will use single sign on either via the browser or the facebook app if already installed.
You can examine the source code of the FBConnect library to see how this is done if you wish, but I'd suggest that re-inventing the wheel is perhaps not the best way to go.