How to implement login through Facebook or Twitter or Gmail account feature in Play Framework2.0 Application - facebook

I am working for designing a web site where I use the Play Framework web application framework. I want to give a feature for the end-users to login to my web site using Facebook, Twitter and Gmail. But how to implement the same feature in Play framework as it uses scala.html? I have searched for the same, but I got the links related to php application. Is Facebook, Twitter, and Gmail provide APIs free of cost?
Thanks.

http://securesocial.ws/ is answer for your question, is the Play framework plugin, you can use it for Authentication and Authorization through the Social sites. Also it supports for Java & Scala and its an active project.

I've successfully implemented SSO Authentication with Gmail using the play-pac4j library which also supports Facebook and Twitter.

Related

facebook log in plugin for wordpress?

I'd like to have a facebook or alike log-in plug-in feature for my website so that my users would just user their social account to log in to my website. What would you recommend? Thanks!
PS I'm using wordpress 3.3
Using oAuth you can achieve this. From facebook developer account you have to create an app id. Then use that app id to send the request.
Read https://developers.facebook.com/docs/facebook-login/login-flow-for-web/ It has got everything you would like to implement for social login using facebook.
https://wordpress.org/plugins/facebook/
here's one. compatible with wordpress 3.3. Also has a couple of advanced features for example being enabling the user to share stuff to his timeline.
Also, if you just require a simple login check this out: https://wordpress.org/plugins/oa-social-login/
This plugin allows the user to sign in from any of the popular social networks into your site.
Or, if you want to code a custom functionality, you should check facebook sdk.

Facebook auth plugin for play framework 2

is there any new Facebook authentication plugin for play framework 2(java)? İ can't find any. everything i found is for play 1.x version.
Secure Social has out of the box support for facebook: http://securesocial.ws/guide/getting-started.html. It's written in scala but supports scala or java based play apps.
Or you can use play-pac4j which supports OAuth (Facebook, Twitter, Google, Yahoo, LinkedIn, ...), CAS, SAML, OpenID (Connect) and GAE. See the demos: play-pac4j-java-demo & https://github.com/pac4j/play-pac4j-scala-demo

Facebook sharing in a J2ME application? Is there any facebook API for J2ME?

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.

Facebook and Twitter Integration with LWUIT 1.4

I am developing J2ME app using LWUIT 1.4 API.
I need to integrate with Facebook and Twitter.
How to do it? Is there any source code that I can learn?
LWUIT4IO which is currently only available in the SVN LWUIT trunk ( http://java.net/projects/lwuit/sources/svn/show ) includes basic support for Twitter and is supposed to get Facebook support within a couple of weeks. Twitter support though is read-only since when that was implemented Twitter only had deprecated basic authentication and OAuth 1.x which is problematic (requires MD5 which means export restrictions etc.).
However, Terrence used a 3rd party library to handle Twitter interaction with LWUIT and has open sourced his work. For more details of what he did see his post here http://terrencebarr.wordpress.com/2011/05/06/beyond-smartphones-source-code-video-released/
Codename One has new facebook integration that actually works on both simulator and devices. Twitter integration will be landing soon as well.

Twitter SDK on iOS with standard UI

I am looking for the SDK to integrate Twitter into my iOS App. I have done research, and seem that MGTwitterEngine is what most people recommend. However, MGTwitterEngine only provides access to the Twitter API, but not the UI.
I also looked a few iPhone app with Twitter integration, such as SCVNGR, FriendsAroundMe, Hashable, they all have the same login page. However, I couldn't find out what SDK these apps use.
I wonder whether there is any SDK release (from Twitter would be the best), which includes both the SDK with standard UI implementation, and some demo code.
Thanks for your advice.
Steve
The login UI for these apps is probably a UIWebView. I say probably because I haven't seen those apps that you've mentioned. The login for Twitter is usually handled in a UIWebView, because Twitter requires OAuth. Since the login is done in a UIWebView, Twitter actually provides that UI.
I would recommend ShareKit for basic Twitter interactions, like posting. ShareKit handles the UIWebView for you. edit: ShareKit (0.2.1) seems to have some memory leak issues. Use at your own risk.
I have a project that builds oAuth and streaming on top of MGTE. The project includes a demo that does authentication in a web view, and streams tweets to a table view.
https://github.com/TimShi/TSTwitterEngine
You can integrate Twitter via Twitter API which requires OAuth. And OAuth requires web-browser in any form. All the other parts can be done without web-browser, but authentication requires it.
You can hack those OAuth web pages in background via UIWebView's JavaScript interface, but the log-in page changes often. And your users will experience log-in trouble until you update hacking algorithm.
In fact, Twitter offers another authentication method called xAuth. You can authenticate completely in background without browser with this protocol, but you have to be approved about using of this protocol from Twitter company via direct contact. I don't think regular startup service can acquire the approval.
I don't think OAuth offer any better security or protection, but this is the only card which I can use without trust from Twitter.
The official Twitter Kit SDK support was discontinued in 2018.
As an alternative solution for displaying Tweets in your app without Twitter Kit, you can render Embedded Tweets and Timelines within webviews using Twitter for Websites.
Check out this link:
https://medium.com/#musmein/rendering-embedded-tweets-and-timelines-within-webview-in-ios-e48920754add