×

Discussion Board

Results 1 to 15 of 25

Hybrid View

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    8

    Facebook in j2me

    Hi All,

    Is there any way to posts messages on Facebook through J2ME application?
    If someone has tried this before then please let me know if you have any information?

    Regards
    Vivek

  2. #2
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Facebook in j2me

    I'm pretty sure that facebook (just like any other social netowrking site like twitter) has some kind of API/web service... So you just would need to interface to that and send the needed information to post a message...

    i'd say have a look here :
    http://developers.facebook.com/conne...tab=mobile_web

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    8

    Re: Facebook in j2me

    Thanks for you information but the link you provide is for the Mobileweb not for mobile application.
    I need some libraray which i can use in my standalone j2me application

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: Facebook in j2me

    I guess the URL Tiger79 provided is the right one and you can read more about Facebook Api's in http://developers.facebook.com/ . All you need is your J2ME application needs to talk to Facebook API's over HTTP. I haven't seen any Facebook Api's for J2ME

    Regards
    Gopal

  5. #5
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Facebook in j2me

    with all due respect but just by reading the first couple of lines of the site I see the following :

    "Facebook Connect is now available for the Mobile Web, allowing you to integrate the power of Facebook Platform into your mobile web site or client application."

    and also :
    # Easily connect their Facebook account and information with your mobile site or application
    # Connect and share experiences with friends who also use your mobile site or application

    So I don't know if you actually just missed the whole introduction of that page or you just want direct plain code ?

    Obviously they don't have a specific J2ME API, but they do have some interface tot their services (Web Service maybe ???), which you will have to integrate/build within your app...

  6. #6
    Registered User
    Join Date
    Nov 2009
    Posts
    8

    Re: Facebook in j2me

    HI guys thanks for your valuable information...
    I don't want any server component to do the talking with my j2me app.
    That's why i am searching for j2me libraray for facebook that i can used directly in my j2me app.

    You're right Tiger that we can call webservice exposed by facebook through java.
    But for that we have to write server side component which will do the talking with facebook-java-api's.

    if someone has tried this thing through j2me app without using server-side component..
    then your suggestions are welcomed

  7. #7
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Facebook in j2me

    hhmm.. afaik you can call web services (or REST-full interfaces just like the facebook api) from J2ME itself, after all (just like the documentation states) it's nothing more than a HTTP GET or POST request... pretty doable with J2ME, no server-side component to be developed...
    I am just assuming here that with server-side component you mean some server inbetween your client apps and facebook right ?
    Because, after all, the Facebook API's are a server-side component (as in the Facebook servers themselves) so anyhow you will have to communicate with at least one serverside component, theirs....

  8. #8
    Nokia Developer Champion
    Join Date
    Jan 2008
    Posts
    10

    Re: Facebook in j2me

    any success on posting to facebook from j2me? I just successfully posted to my facebook wall from j2me, bad part is, its mostly hardcoded. no XML, JSON stuffs used. Just plain Http/Https Connection, some cookie handling stuffs and a little code to handle javascript redirects.

  9. #9
    Nokia Developer Champion
    Join Date
    Jan 2008
    Posts
    10

    Re: Facebook in j2me

    Quote Originally Posted by genergabasa View Post
    any success on posting to facebook from j2me? I just successfully posted to my facebook wall from j2me, bad part is, its mostly hardcoded. no XML, JSON stuffs used. Just plain Http/Https Connection, some cookie handling stuffs and a little code to handle javascript redirects.
    Update:

    I now used KXML and JSON libraries to cleanup my Facebook API. Here's a video of a demo http://www.youtube.com/watch?v=RT63E...ature=youtu.be

  10. #10
    Registered User
    Join Date
    May 2009
    Location
    Guatemala
    Posts
    186

    Re: Facebook in j2me

    Interesting. Are you going to share it ?
    -CarlosDL

  11. #11
    Nokia Developer Champion
    Join Date
    Feb 2005
    Location
    Campina Grande/PB - Brazil
    Posts
    138

    Re: Facebook in j2me

    Very interesting. Are you going to release it?

  12. #12
    Nokia Developer Champion
    Join Date
    Jan 2008
    Posts
    10

    Re: Facebook in j2me

    Quote Originally Posted by TK2000 View Post
    Very interesting. Are you going to release it?
    Not yet, it seems that facebook constantly changes its own code. I don't know why, eg. I used display=wap today, tomorrow it won't work so I switch to display=page, now it works again but then tomorrow facebook will change the authentication page so I will change again and again, they don't seem to get tired doing so and so am I. Will release it when all these annoying changes from facebook halts.

Similar Threads

  1. J2ME or C++ for VoIP on Mobile
    By sandeepkumar03 in forum VoIP
    Replies: 4
    Last Post: 2009-02-02, 10:28
  2. Calling a native c or c++ application from J2ME
    By satyarajasekhar in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2009-01-02, 12:10
  3. J2ME or C++ for VoIP on Mobile Phone
    By sandeepkumar03 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-11-13, 20:14
  4. Acessing voice channel using J2ME
    By diegomello in forum VoIP
    Replies: 1
    Last Post: 2008-10-21, 15:57
  5. Can J2ME be used for sending MMS Message ?
    By seno_ap in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-24, 14:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •