ios - Share Pin using Pinterest SDK -


i'm trying post pin app pinterest.

i followed there documentation : ios pin sdk.

it's simple, each time try pin image app raise exception, or pinterest app opened when pin image got error:

error in client id

it seems there problem in right client id.

i searched problem , found result: message sent deallocated instance using pinterest sdk , didn't work me!

my code:

var pin = pinterest(clientid: "1446186", urlschemesuffix: "prod") var urll = nsurl(string: "http://placekitten.com.s3.amazonaws.com/homepage-  samples/200/287.jpg")! var sourceurl = nsurl(string: "http://placekitten.com")! pin.createpinwithimageurl(urll, sourceurl: sourceurl, description: "pinning pin demo") 

try following code....its using in project...

_pinterest = [[pinterest alloc] initwithclientid:@"xxxxx" ]; nsstring *imagekey =[nsstring stringwithformat:@"%@",url]; nsstring *captionkey = tempcaption;  nslog(@"pinterest :%@ -- %@",imagekey,captionkey); nsurl *imageurl = [nsurl urlwithstring:[nsstring stringwithformat:@"%@",imagekey]]; nsurl *sourceurl = [nsurl urlwithstring:kservicestorelink]; nsstring *descrstr = [nsstring stringwithformat:@"%@",captionkey]; [_pinterest createpinwithimageurl:imageurl                         sourceurl:sourceurl                       description:descrstr]; 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -