Quantcast
Channel: Active questions tagged news-feed+ios+facebook - Stack Overflow
Viewing all articles
Browse latest Browse all 28

Unable to post to facebook feed through IOS sdk

$
0
0

I am currently having issues making a post to user's wall through facebook API. I've requested permissions "read_stream" and "publish_stream". I am able to log in and get the user's first name, but when I go to post nothing shows up on user's wall. The post is made immediately after receiving user's information from call:

[facebook requestWithGraphPath:@"me" andDelegate:self];  

I then attempt to make a post to user's wall with:

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Test", @"name",@"http://www.example.com",@"link",@"New high score!", @"caption",
                               @"Test Caption", @"description",
                               @"Test description", @"message",       
                               @"link",@"type",
                               nil];

// Publish.
[facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];

I get a callback notification saying response was received successfully, but id of post is "0". I attached wireshark and I actually never see a post message sent over wire. I stepped through facebook code and see the post urlconnection actually made and the "connect" method called on it. I've checked the session and it says it is still valid. I have even tried replacing the call to get user's info with the post and still get same result.

This occurs both in simulator and device.

Any ideas on what I am missing?


Viewing all articles
Browse latest Browse all 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>