1. Download our Official Android App: Forums for Android!

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
    Rank:
    None
    Points:
    25
    Posts:
    2
    Joined:
    Oct 29, 2010

    Oct 29, 2010
    2
    0
    25
    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.
     

    Advertisement

  2. Martimus

    Martimus One bite at a time...
    Rank:
    None
    Points:
    843
    Posts:
    19,533
    Joined:
    Jul 9, 2010

    Jul 9, 2010
    19,533
    4,047
    843
    Male
    Engineer
    'neath a cactus
    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

    Steven58 "The Unqualified Moderator!"
    Moderator
    Rank:
     #5
    Points:
    3,973
    Posts:
    33,660
    Joined:
    Feb 19, 2010

    Feb 19, 2010
    33,660
    26,546
    3,973
    Male
    New Jersey, US of A
    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
    Rank:
     #12
    Points:
    2,013
    Posts:
    23,839
    Joined:
    May 11, 2010

    May 11, 2010
    23,839
    11,698
    2,013
    Male
    IT Administrator
    Northern Ky
    Hello and Welcome!!
     

Share This Page

Loading...