7

how to use Action_view intent to post on facebook wall in android?

I have done facebook sdk integration with my Android app it is working fine for me.

But i want to do it with Action_view intent.

N-JOY
  • 10,344
  • 7
  • 51
  • 69
Dipali
  • 1,148
  • 3
  • 13
  • 23

2 Answers2

3
Intent i = new Intent(Intent.ACTION_VIEW);   
i.setData(Uri.parse("http://www.facebook.com/dialog/feed?app_id=YOUR_APP_ID&redirect_uri=REDIRECT_URI");

It works fine for me.

Add your appid and redirected uri to above url.

Adinia
  • 3,722
  • 5
  • 40
  • 58
Dipali
  • 1,148
  • 3
  • 13
  • 23
0

Please refer to this question: Android and Facebook share intent

The share Intent for Facebook has been broken for quite some time. They still haven't completely fixed it.

Community
  • 1
  • 1
Michell Bak
  • 13,182
  • 11
  • 64
  • 121
  • In this link sharing content on facebook is by ACTION_SEND intent, But I want to do it by ACTION_VIEW intent. – Dipali Dec 28 '11 at 11:10