Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 79

Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
03/21/13 11:06 AM (12 years ago)

Scringo activity update image not showing

Hey guys, I'm working on getting Scringo activity updates up and running in one of my apps. I have it set up so that it shows a feed in the sidebar when a user finishes playing a quiz - Kittsy uploaded video of the same thing a little while back I have it working using this code - [ScringoAgent postToFeed:[NSString stringWithFormat:@"scored %d on the 1D Quiz", totalPoints] withImage:@"144.png" withDescription:@"Think you can beat that?" withSubDesc:@"Only 1.99$" withActionVerb:@"Play" withActionId:@"Song-1"]; for some reason though, no image is posting net to the feed. "144.png" is definitely in my project and I've tried it with a number of other images but nothing shows. What exactly am I missing here
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/21/13 11:15 AM (12 years ago)
Only works with an image URL. You write it as a string though
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/21/13 11:17 AM (12 years ago)
Ah, I see. Thanks for the quick response as usual
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/21/13 11:49 AM (12 years ago)
No worries
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/21/13 11:56 AM (12 years ago)
ok, I thought it would be easy enough but the image is still not showing...I'm using the following format - NSURL *quizUrl = [NSURL URLWithString:@"http://www.pixobit.com/wp-content/uploads/2012/11/1141.png"]; NSString *quizPic = [quizUrl absoluteString]; [ScringoAgent postToFeed:[NSString stringWithFormat:@"scored %d on the 1D Quiz", totalPoints] withImage:quizPic withDescription:@"Think you can beat that?" withSubDesc:@"Only 1.99$" withActionVerb:@"Play" withActionId:@"Song-1"]; I've also tried this - [ScringoAgent postToFeed:[NSString stringWithFormat:@"scored %d on the 1D Quiz", totalPoints] withImage:"http://www.pixobit.com/wp-content/uploads/2012/11/1141.png" withDescription:@"Think you can beat that?" withSubDesc:@"Only 1.99$" withActionVerb:@"Play" withActionId:@"Song-1"];
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
03/21/13 12:07 PM (12 years ago)
Oooh so close lol you missed the @ before the link [ScringoAgent postToFeed:[NSString stringWithFormat:@"scored %d on the 1D Quiz", totalPoints] withImage:@"http://www.pixobit.com/wp-content/uploads/2012/11/1141.png" withDescription:@"Think you can beat that?" withSubDesc:@"Only 1.99$" withActionVerb:@"Play" withActionId:@"Song-1"];
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
03/21/13 12:18 PM (12 years ago)
aww man...well, it's officially working now haha. Thanks again
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
04/25/13 05:09 PM (12 years ago)
Absentia - can you please clarify where you put this code?? I tried at the end of the quizEnded method (BT_screen_quiz.m) but not sure if that's correct. thanks!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.