How to test facebook application via localhost? - facebook

I am researching how to build apps in facebook. I downloaded a standard application facebook provides called "friendsmash".
The link I use as canvas URL is: localhost:8080/friendsmash_social/
When i try to load the facebook application it won't display anything.
How can i test the application without publishing it?

Give the Canvas url as: http://localhost:8080/friendsmash_social/.
You can not see this in the localhost, but you can test your application by running http://localhost:8080/friendsmash_social/ in your browser

Related

How to open the Facebook app during OAuth in Ionic?

I just got my app working with $cordovaOAuth from ng-cordova and I've read and understood all from Nic Raboy's post (http://blog.ionic.io/oauth-ionic-ngcordova/). It works fine: both the inAppBrowser and the authentication itself.
But I want to take it one step further: how can I redirect the OAuth call to the installed app itself? For example, if I was using Facebook OAuth, how can I open the actual Facebook app (if installed - how to check it?) instead of a browser?

given url is not allowed by the application configuration.facebook login error

I am developing an andriod app using xamarin studio and this is my first mobile app. I am trying to integrate with Facebook login. As per the pre-requistes i have created an app in developers page in facebook and have included the app_id in my code. But when i try to connect to the facebook login i get this error . I have installed the facebook sdk as well in my emulator.
given url is not allowed by the application configuration.: one or more of the given urls is not allowed by the app's settings. it must match the website url or canvas url, or the domain must be a subdomain of one of the app's domains.
Please provide your suggestions.
I suggest you use the Facebook Android SDK component if you have not already.
Then execute the Facebook Android Sample project? You can use the sample code as a reference for whatever you are trying to achieve.
Good luck.
App Domain: localhost
Web Site Url: http(s)://localhost:port
Oauth Redir URL: https://.firebaseapp.com/__/auth/handler

How do I get Facebook to return to my app after login if using phonegap plain on iPhone?

I have a phonegap app that I use the Facebook plugin to implement single sign on. I registered am a native iPhone app since the app is not run in the browser. When I click on login I get an invalid URL error message. I suspect my problem is either I need to specify a URL which I have tried using channel in init but I get a URL not allowed with this configuration. The other problem may be that I need to register this application as a web app. However using phonegap the application does not have a url. I don't know what to do.
Any help is appreciated.
Thanks!
Did you look at the iOS URL scheme section of the Plugin's readme?

Facebook Login with Blackberry Webworks

So I'm trying to build a Blackberry Webworks that integrates with Facebook.
I'm trying to use the Javascript API provided by Facebook, but I'm having some issues with logging in.
The typical "FB.login" function creates a popup, and this doesn't show up on a Blackberry so using that is no good.
Another issue is that I have no idea what to set as the redirect_url for the oauth login, because Webworks pages are referenced locally (local://index.html), and the API rejects this as a valid url. (I've also tried just index.html, but this also causes an error)
And finally, I have no idea what to use for the Mobile Website URL on the Application settings and not sure what other settings to use. Since users will be coming from a Webworks app, Facebook is rejecting login requests if I try to call the oauth url directly. (191 Error).
I figured out the only viable way to do this is to have a web server that will go through the OAuth2 authentication process documented by Facebook.
What you can do in Blackberry is open a new window or to use a Blackberry BrowserField that links to the web server, that way, your page will be able to get the oauth token that you can use to make Graph API calls.

how to use FB.Connect.StreamPublish

from the scarcely documented FB api, I have thus far learned that I need to do the following to get the StreamPublish working:
I am making an iframe app
setup xd_receiver.htm. DONE.
put the FeatureLoader.js.php at the top of the body tag. DONE.
configure the api key and xd_receiver.htm. DONE.
configure the connect callback URL. NOT DONE -> what URL should I specify here?
I am unable to use the function. i have a specific link which shuld call for the FB.Connect.StreamPublish function.
can someone please explain the working of this by some example?
Check out this page for complete instructions on setting up Stream Publishing for iFrame apps (or Connect pages) using FB.Connect.streamPublish():
http://thetechnicalexperience.blogspot.com/2010/02/how-to-use-fbconnectstreampublish.html
In the facebook application settings, the description is:
Your Connect site's main URL.
And that is exactly what it is, the main URL for the site where your app resides.
If your app would've been a canvas app, you could use the FBJS function FB.streamPublish, but in an iframe app you will have to use the FB.Connect.StreamPublish.
More info at http://wiki.developers.facebook.com/index.php/Facebook.streamPublish
It seems that you have a conceptual error.
Iframe apps are canvas apps, NOT Connect apps.
Canvas apps are applications that work inside the Facebook site, eg: from a tab from your profile.
Canvas apps require you to configure a callback URL, which is the URL where your application resides. You shouldn't do steps 1-3 because Facebook will proxy the calls to your application so they can send your application session information about the user (through a POST or GET params).
Connect apps are external sites, like Digg, where you must do steps 1-3, but not step 4. Steps 1-3 are required to establish a communication channel with Facebook.
Please read http://wiki.developers.facebook.com/index.php/Connect/Setting_Up_Your_Site for a step by step guide for installing Connect in your site. After you are done with it, you can call FB.Connect.StreamPublish.