Facebook and Twitter Integration with LWUIT 1.4 - facebook

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.

Related

Codename One - Facebook Marketing API

I was looking for a way to integrate my CodenameOne app with Facebook. Particularly to collect data aimed to improve the adds shown on Facebook to users who have, for example, installed the app. What I found for integration with Facebook on CN1 is (mainly) this https://www.codenameone.com/javadoc/com/codename1/social/FacebookConnect.html
This seems useful for publishing photos or posts to Facebook as a user, but not for gathering data as I need it. Is there a way to access this part of the Facebook SDK in CN1? If there isnĀ“t is this planned for the future?
The connect API is designed for authorization and authentication which need to be native. From that point on you can use the token against the standard Facebook Graph API.
I'm not really familiar with the marketing API but does it require functionality from the native SDK which isn't available in the current SDK?

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

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.

Phonegap/Cordova Facebook plugin rejected by Facebook

Facebook rejects the implementation of the official Phonegap Facebook plugin.
Did it by the book, login, posting works. Explained it's Phonegap (v3.0), and it's using their native SDK, but got rejected two times without any explanation except the info below.
Your Android app must use the native Login dialog that comes with Facebook's SDKs instead of custom web views. Ensure you have successfully tested your Facebook Login integration for Single Sign On or remove this integration as a listed platform in the developer app.
Here are the full details
Please advise. Thx!

Facebook Login with WebWorks

I have been trying for some days now to login to facebook via a webworks application, I undesrtand that the FB.login can't work beacuse of a popup, and the oauth login has to go through a web server, I am currently trying to implement this plugin
https://github.com/rsweny/ChildBrowser-plugin-for-BlackBerry
but the readme file isn't really clear about how to implement, I understand that you need an ext directory in the app folder but not sure if I need to add something to the config.xml file or to any other.
Please help!
Thanks,
Jose.
I created some examples of how to integrate your app with Facebook, Twitter, and foursquare via OAuth. They're targeted for BlackBerry 10, but should work on earlier versions as well.
Note: I'll be updating them (for BlackBerry 10) to make use of the new ChildBrowser API.
OAuth Samples are available on GitHub # https://github.com/ctetreault/BB10-WebWorks-Samples

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