Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7061443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:28:30+00:00 2026-05-28T04:28:30+00:00

I am trying to make an application which integrates facebook and twitter. I have

  • 0

I am trying to make an application which integrates facebook and twitter.
I have started to implement Facebook for my application.
And I have managed to do that using recently released Facebook SDK for android example

but now I am looking to share a page or a link to facebook using the same SDK but have no clue how to do it.

Can anyone please let me know how to do it. I am really stuck on this from long time.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:28:30+00:00Added an answer on May 28, 2026 at 4:28 am
    @Override
        public void onCreate(Bundle savedInstanceState)
        {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.photo);
    
            Utility.mFacebook = new Facebook(APP_ID);
            Utility.mAsyncRunner = new AsyncFacebookRunner(Utility.mFacebook);
            SessionStore.restore(Utility.mFacebook, this);
            SessionEvents.addAuthListener(new FbAPIsAuthListener());
            SessionEvents.addLogoutListener(new FbAPIsLogoutListener());
            mLoginButton = (LoginButton) findViewById(R.id.login);
            mLoginButton.init(this, AUTHORIZE_ACTIVITY_RESULT_CODE, Utility.mFacebook, permissions);
            if (Utility.mFacebook.isSessionValid()) {
                mLoginButton.setVisibility(View.INVISIBLE);
            }        
    }
    
    public void onClick(View v) {
            switch(v.getId())
            {           
                case R.id.btnFacebookShare:
                    if (!Utility.mFacebook.isSessionValid()) {
                        Utility.mFacebook.authorize(PhotoPage.this , permissions, AUTHORIZE_ACTIVITY_RESULT_CODE, new LoginDialogListener());
                    }
                    else 
                    {                   
                        Bundle bCreateAlbum = new Bundle();
                            bCreateAlbum.putString("message", "");
                            bCreateAlbum.putString("name", getString(R.string.photo_AlbumName));                    
                            Utility.mAsyncRunner.request("me/albums", bCreateAlbum, "POST", new CreateAlbumsListener(), null);
                    }
                    break;
                default:
                    break;
            }
        } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make an application using AppleScript which can remind to check
I'm trying to make an experimental web application which minimises redundant data. I have
I have a C# application in which I am trying to make a string
I am trying to make an application which is able to post images on
I'm trying to make an application in which both the developer and the end
i'm currently trying to make a asp.net mvc3 app. in the sample application which
I am trying to make a C# desktop application (with Emgu CV wrapper) which
I'm trying to make an application that keeps an object model in sync with
I am trying to make an application that will fill in the info i
I am trying to make an application in which one component captures the screen

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.