title: Can't share images using via Pinterest in Objective-c
body: <p>I got a problem when sharing the images on Pinterest. I got a response as pinned failed. How to share the images by using in pinterest?</p>
  <p>Here is my code:</p>
  <p>I installed pods but I can't pinned images.</p>
  <pre><code>[PDKPin pinWithImageURL:[NSURL URLWithString:@&quot;https://about.pinterest.com/sites/about/files/logo.jpg&quot;] link:[NSURL URLWithString:@&quot;https://www.pinterest.com&quot;]
            suggestedBoardName:@&quot;&quot; note:@&quot;The Pinterest Logo&quot; withSuccess:^
        {
            // weakSelf.resultLabel.text = [NSString stringWithFormat:@&quot;successfully pinned pin&quot;];
        }
                    andFailure:^(NSError *error)
        {
            //weakSelf.resultLabel.text = @&quot;pin it failed&quot;;
            NSLog(@&quot;Error:%@&quot;,error);
            
        }];
  </code></pre>
  <p>I got the response</p>
  <pre class="lang-none prettyprint-override"><code>2018-03-22 16:25:25.591507+0530 DirectoryApp[5548:930657] pin it failed
  2018-03-22 16:25:25.591605+0530 DirectoryApp[5548:930657] Error Domain=PDKPin Code=2 &quot;(null)&quot;
  </code></pre>