1. Are you ready for the Galaxy S20? Here is everything we know so far!

how to send int variable value in attachment of FBConnect

Discussion in 'Introductions' started by Vishakha, Nov 2, 2010.

  1. Vishakha

    Vishakha Lurker
    Thread Starter

    Hello,

    I am using FBConnect for posting game score on facebook wall. In attachment I want to send game score that integer variable.If following is the attachment then in caption how can I send integer variable value.

    private void publishFeed() {
    Intent intent = new Intent(this, FBFeedActivity.class);
    intent.putExtra("userMessagePrompt", "Example prompt");
    intent.putExtra("attachment", "{\"name\":\"Facebook Connect for Android\",\"href\":\"http://code.google.com/p/fbconnect-android/\",\"caption\":\"I score playerScore points \",\"description\":\"Description\",\"media\":[{\"type\":\"image\",\"src\":\"http://img40.yfrog.com/img40/5914/iphoneconnectbtn.jpg\",\"href\":\"http://developers.facebook.com/connect.php?tab=iphone/\"}],\"properties\":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}");
    this.startActivityForResult(intent, MESSAGEPUBLISHED);
    }



    In above code the "playerScore" is integer variable which value I want display on facebook wall.


    Thank you.

    regards,
    Vishakha.
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Martimus

    Martimus One bite at a time...

    Welcome to the Android Forums!

    Try posting your question to the Android Development forum. It's probably the best place to try to get the answer you seek.

    Application Development - Android Forums
     
  3. Steven58

    Moderator

    I wanna welcome you here! Thanks for joining! PM me if you need help finding your way around! :D
     
  4. NightAngel79

    NightAngel79 Bounty Hunter
    Administrator

    Hello and Welcome!!
     
Loading...
Similar Threads - send int variable
  1. jakeburns
    Replies:
    0
    Views:
    352
  2. j4ckofalltrades
    Replies:
    1
    Views:
    308
  3. tinker123
    Replies:
    3
    Views:
    453
  4. Laura19752001
    Replies:
    6
    Views:
    547
  5. Sammy Power
    Replies:
    7
    Views:
    671
  6. Ctwistedpair
    Replies:
    3
    Views:
    326
  7. Twink
    Replies:
    5
    Views:
    602
  8. App Update
    Replies:
    1
    Views:
    390
  9. TienDat
    Replies:
    3
    Views:
    558
  10. TienDat
    Replies:
    0
    Views:
    664

Share This Page

Loading...