在android sdk中显示facebook墙

我一直在使用facebook-android-sdk并集成发布消息到用户的墙上。 我已经开始工作,但是我想用新帖子显示用户的墙,以便他们可以查看它。

sdk是否通过Dialog实现了这个功能?或者是否需要通过Android中的webview加载Graph API URL? (请参阅http://developers.facebook.com/docs/reference/dialogs/


为了显示流(又名wall / feed / posts)

总体信息:请参阅:https://github.com/facebook/facebook-android-sdk/tree/master/examples/stream

这里的Java代码如何渲染:https://github.com/facebook/facebook-android-sdk/blob/master/examples/stream/src/com/facebook/stream/StreamRenderer.java


经过大量的挖掘,我只是继续使用Webview。

...

public void onComplete (Bundle values)
            {
                      Log.d (TAG, "onComplete()");
              Toast.makeText (getBaseContext (), "Completed", Toast.LENGTH_SHORT).show();
              SharedPreferences.Editor editor = mPrefs.edit();
                  editor.putString("access_token", facebook.getAccessToken());
                  editor.putLong("access_expires", facebook.getAccessExpires());
                  editor.commit();

                      // post the message 
                  postMessageOnWall ("");

                      // we're already authenticated so just go to the user's wall in a webview
                  WebView mWebView;
                  mWebView = (WebView) findViewById(R.id.wv_fb);
                  mWebView.getSettings().setJavaScriptEnabled(true);
                  mWebView.loadUrl("http://www.facebook.com/profile.php?&sk=wall");
            }

...

链接地址: http://www.djcxy.com/p/49609.html

上一篇: display facebook wall in android sdk

下一篇: post on wall dialog disappears immediately