php - How to Post facebook wall automatically with Facebook API (only with userid) -


using fconnect user have authenticated , have saved userid database.

when try publish wall redirecting facebook login page . if user haven't logged in.

$status = $facebook->api('/my_user_id/feed', 'post',     array('message' => 'this post came app.')); 

help me web app posting status wall without havn't logged facebook.

please me fix it:)

below code helps permissions user , access user's information:

$dialog_url = "http://www.facebook.com/dialog/oauth?client_id=". $app_id . "&redirect_uri=" . urlencode($my_url) . "&scope=publish_stream,user_about_me,read_friendlists,offline_access,publish_actions,friends_photos,,user_photos". "&state=" . $_session['state'];  echo("<script> window.location.href='" . $dialog_url . "'</script>"); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -