Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-22-2011, 03:03 PM   #1 (permalink)
Registered Member
 
djalfirevic's Avatar
 
Join Date: Mar 2011
Posts: 84
djalfirevic is on a distinguished road
Default Post photo from iPhone to Event wall using Facebook Connect/iPhone SDK

Hello,

I've managed to post a picture to an user's wall with this code:

Code:
NSString *imageName            = [NSString stringWithFormat:@"%@", [[party.partyPictures allKeys] objectAtIndex:pageControl.currentPage]];
    NSString *imageUrlString    = [NSString stringWithFormat:@"%@images/%@/%@", WebServiceAddress, party.partyID, imageName];
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   APP_NAME,@"message",
                                   [NSString stringWithFormat:@"%@ is great!", party.partyName], @"name",
                                   AppURL, @"link",
                                   imageUrlString, @"picture",
                                   nil];
    
    [[self appDelegate].facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
I've tried to post a photo to an Event wall, with the same code, except that requestWithGraphPath is not the same:

Code:
...
    
    [[self appDelegate].facebook requestWithGraphPath:@"EVENT_ID/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
Post is posted on user's wall. @"message" parameter is there but only picture that is shown is a user profile picture and not picture from URL, like in the previous code snippet. I've looked at the documentation and it says in Connections section, that Event has "feed" connection and I thought, since it accepts Post object that this would be OK, but no.

Has anyone manage to do this?
__________________
And thus I clothe my naked villainy; with old odd ends stolen forth from holy writ; and seem a saint when most I play the devil.
djalfirevic is offline   Reply With Quote
Old 01-13-2012, 01:18 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 2
el.severo is on a distinguished road
Default

Trying to achieve the same thing... have you found a solution for this?

Thanks!

Quote:
Originally Posted by djalfirevic View Post
Hello,

I've managed to post a picture to an user's wall with this code:

Code:
NSString *imageName            = [NSString stringWithFormat:@"%@", [[party.partyPictures allKeys] objectAtIndex:pageControl.currentPage]];
    NSString *imageUrlString    = [NSString stringWithFormat:@"%@images/%@/%@", WebServiceAddress, party.partyID, imageName];
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   APP_NAME,@"message",
                                   [NSString stringWithFormat:@"%@ is great!", party.partyName], @"name",
                                   AppURL, @"link",
                                   imageUrlString, @"picture",
                                   nil];
    
    [[self appDelegate].facebook requestWithGraphPath:@"me/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
I've tried to post a photo to an Event wall, with the same code, except that requestWithGraphPath is not the same:

Code:
...
    
    [[self appDelegate].facebook requestWithGraphPath:@"EVENT_ID/feed" andParams:params andHttpMethod:@"POST" andDelegate:self];
Post is posted on user's wall. @"message" parameter is there but only picture that is shown is a user profile picture and not picture from URL, like in the previous code snippet. I've looked at the documentation and it says in Connections section, that Event has "feed" connection and I thought, since it accepts Post object that this would be OK, but no.

Has anyone manage to do this?
el.severo is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 330
8 members and 322 guests
chemistry, Dnnake, iOS.Lover, lendo, leostc, Leslie80, pbart, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0