2

Is it possible to use the javascript sdk from facebook without any server? Kinda like the @anywhere platform for twitter.

4
  • Your use of the phrase "without any server" is kind of confusing. If you meant "without writing any server-side code", then yes, that's the point. Commented Feb 9, 2011 at 14:52
  • Facebook's dev stuff changes quite a bit... Does using the JS SDK, at least for your needs, require the use of an "application secret" to decrypt a user's cookie and get their authorization token? I remember needing that before for some Facebook integration I did for a previous project a while back. Commented Feb 9, 2011 at 14:53
  • The idea is that the client become self-sufficient. Kinda like a twitter client on desktop (it needs the web for the pin, but that's it) Commented Feb 9, 2011 at 15:35
  • I know this is quite old, but you should edit this question and include that you wanted to make it work locally. i.e. Facebook API JS Client locally (no server-code). When reading the thread, it currently makes no sense. Commented Jan 22, 2013 at 19:02

2 Answers 2

1

I've solve the problem: You can use it without a server, however, you will have to set site correctly. If you can't be sure what the url will be (it can start with file, but you don't know the middle), then hosting online is the only solution, even if no callback is needed.

Sign up to request clarification or add additional context in comments.

1 Comment

Meaning it is a must to serve the js files if one would like to use fb login api?
0

Reading the Javascript SDK documentation and browsing the SDK on github, you can see that you only need your server to host the html page that includes the facebook JS library almost just like @Anywhere!!

No need to contact your server for any Facebook processing, if you don't want to!

4 Comments

Thanks, but i solved the issue. It was a site thing. Hosting locally you have to set the app's site to localhost.
@Daniel Ribeiro: You didn't mention that you want to develop locally! anyway this is a tutorial for that.
Not develop locally. Use locally. Kinda like a desktop/mobile app. But in JS. But nice link
@Daniel Ribeiro: almost same concept, anyway glad you liked it...please feel free to send any comments or suggestions..It's still in beta phase and I haven't started promoting it yet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.