0
NSDictionary *messageParams1 = [NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"string sterinfsd;fs;d "],@"message",nil];
NSString *postString = [messageParams1 JSONRepresentation];
NSData *myPostData = [postString dataUsingEncoding:NSUTF8StringEncoding]; // StringEncoding];
NSString *strMyUrl1 = [NSString stringWithFormat:@"https://graph.facebook.com/me/feed?access_token=%@",facebook.accessToken];
NSURL *myUrl1 = [NSURL URLWithString:strMyUrl1];
NSMutableURLRequest *myUrlRequest = [[NSMutableURLRequest alloc] initWithURL:myUrl1 cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10.0f];
int count = [myPostData length];
[myUrlRequest setHTTPMethod:@"POST"];
[myUrlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[myUrlRequest setValue:[NSString stringWithFormat:@"%d", count ] forHTTPHeaderField:@"Content-Length"];
[myUrlRequest setHTTPBody: myPostData];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:myUrlRequest delegate:self];
[connection start];