Can I use the Facebook JavaScript SDK in an offline web app? - facebook

My Web based offline app which will run using phonegap (html, css, jquery)
The app doesn't have an actual web address.
Is it still possible to use the Facebook JavaScript API?

Using the Facebook JavaScript API requires an active internet connection so it is not possible to use it offline.
If by "offline" you mean that your app is not hosted from a web server but locally inside the app "web app" container, then the answer is yes, you can use the Facebook JS API in this setup using phonegap (Cordova).

Related

Logging in a social media (facebook, twitter etc) in a hybrid mobile application through javascript

My hybrid mobile application (for android and iOS possibly windows as well) requires users to authenticate in Facebook.
How should I setup the Facebook application (mobile application or web application) since I am using Javascript SDK
If I need to setup the application as a web app, How should I configure the app domain and site URLs in Facebook application as the files are going to reside in the local app folders of the hybrid mobile application.
If I need to setup the application as a mobile app, How can I use the Javascript SDK?
The OAuth Login system verfication helps to increase the registration , since your application is hybrid and its a mobile based you need to create a php based web login auth to authenticate the login , there are many an enumeros website that help in aiding to achive the determined goal of this, the first thing is to create a facebook application , secondly you need to configure App Id and App Secret ( this will require you to input details about your domains and other information related to the app infos ) , your solution can be found here www.oauthlogin.com also check this out simply download and implement video instruction out there http://www.9lessons.info/2011/09/update-login-with-facebook-and-twitter.html
You will need to register your app with facebook to get developers API Apps Id and App Secret.
you have to follow a screenshot of Friends Invite from Facebook in the links below.
http://www.webtuts.info/webdevelopment/facebook-api-invite-friends-website/172/
The set up are all the same and that is what am using in my phonegap app to set facebook login authentication. Once you have created an account with facebook, you can follow a tutorial in the link below to build your facebook login for IOS,Windows and Android etc
http://asif18.com/5/facebook/facebook-login-using-php-sdk-and-javascript-sdk/
You can write back if you find it difficult to integrate. Rate this response if you findin it helpful. Thanks

How to test facebook application via localhost?

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

meteor - phonegap facebook oauth

so i have a meteor app, and i'm using facebook login (and google etc) for user authentication.
and i'm using MeteorRider which is basically "hijacking" the DOM from my meteor app, this way i get also a phonegap app.
So when using web and clicking on the facebook login, its working great.
but when using the phonegap app, its not working. its making an ouath call (opening a browser and do all the process but does not automatically close the browser and bring up my app) but then redirect to my app in the browser.
i'm still trying to figure how the two works with each other.
do i need to do this authentication using phonegap api or should i handle it using meteor api?
I use this for any oauth requirements in phonegap. https://github.com/oauth-io/oauth-phonegap
It handles closing of the browser etc.
I just released a package to fix this. It uses the InAppBrowser plugin to load the popup, listens for the auth token, closes the popup and logs in/creates account.
https://atmosphere.meteor.com/package/phonegap-oauth

How to use the social media API's for mobile apps development

I am new to mobile apps development. While using web marmalade for development I want to connect my app with social media websites.
All websites require authentication. after authentication they redirect to the server where application is hosted. The problem is mobile app is not hosted on a server like web apps. So I do not have the redirect URL. How Can I authenticate from Facebook , twitter and linkedIn without redirect URL's
Web-Marmalade is based on Phonegap api. So you can use any phonegap plugin in marmalade too. Although marmalade is based on an older phonegap api, but still most of the plugin will work. Here's an example of facebook plugin from phonegap's github page.
You can check out the plugin making guide of web-marmalade here.

Barebones Facebook Connection with flashbuilder 4.5 (mobile app)

I am looking for a barebones facebook connection from pure actionscript to use in a mobile. Does anyone know of any examples. Been having a hard time finding what I want in Google
Thanks!
You cant connect to facebook with only actionscript - flash does not implement OAuth which you need to get a valid access token.
You have to either get an access token through PHP, or Javascript.
If you are making a mobile web-app you can check out
http://blog.yoz.sk/2010/04/facebook-now-with-oauth-and-open-graph/
Jozef Chúťka put together a great walkthrough and classes for AS3 and facebook.
So you can make a web app or use a web view in AIR to handle your authentication.