pinterest

How to use oembed tags to implement rich pins

五迷三道 提交于 2019-12-05 06:22:43
I need to implement rich pins provided by pinterest ( http://developers.pinterest.com/rich_pins/ ). One of the recommended ways is to use oembed. Unfortunately I am not familiar with oembed tags and was wondering if somebody can provide more insight. What is the syntax for oembed tags? Should I surround with tags? Any particular place where it should be called? Any help will be appreciated. TIA This gives examples, but given the SEO benefits of using structured data, it might be more beneficial to use that instead for pinterest. Meta tags can also be used From the link above: An oEmbed formula

Pinterest Followers display

落爺英雄遲暮 提交于 2019-12-05 05:29:18
问题 How would I go about showing my Pinterest followers in Wordpress? I tried this but it only displays the button letting users to follow my account, nothing about my followers. Presumably, I can do this using the Pinterest API, but I'm unsure where to start. Any help would be appreciated. 回答1: Yes, you can use the Pinterest API. Install curl and use that in a PHP script. Example: $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, 'http://pinterestapi.co.uk/"""yourname"""/likes'); curl_setopt (

Pinterest style listview or gridview in android [duplicate]

僤鯓⒐⒋嵵緔 提交于 2019-12-04 23:39:59
This question already has an answer here: Android heterogeneous gridview like pinterest? [closed] 7 answers I am looking to implement pinterest style gridview (see image) and am having difficulty coming up with an approach. The view needs to have 3 columns (like pinterest) with individual images having constant width but variable height. It should be scrollable. I am also concerned about the issue of being able to recycle views as the number of images can be lot (say 1000s) I am not sure how to approach this view in android. Gaurav I never thought about it until you brought it up, but this is

Pinterest style layout (Bootstrap 3 + Masonary) *final tweeks*

回眸只為那壹抹淺笑 提交于 2019-12-04 21:07:24
I'm building a site that needs a pinterest style home page. (but only 3 columns wide collapsing down to 2 and then 1 column using the col-lg-4 bootstrap class). I've searched and found many options of how to do this. However, I don't want to specify column widths in my css (I want it to inherit the bootstrap column widths) I dont want to use the new css3 column layout (for lack of older browser support) I dont want to do it in PHP as it stacks in the incorrect order. I've adapted some code taken from https://gist.github.com/justincarroll/5959773 which uses masonry to push the blocks around and

Pinterest Authentication url returning 404 error?

不羁的心 提交于 2019-12-04 14:00:25
问题 I am testing pinterest api http://pinterest.com/developers/api/ here on above url in authentication section it says i have to redirect users to pinterest Authentication screen. but when i redirect users o this url(with my client_id and redirect_url) https://pinterest.com/oauth/authorize/?client_id=12345456&redirect_uri=YOUR_REDIRECT_URI&scope=read it returns 404 error? what is wrong here? 回答1: This is the response I received from them the other day: Hello Chris, the API was not really opened

Pinterest API - pure json response?

独自空忆成欢 提交于 2019-12-04 12:48:30
So I made a simple HTTP request to Pinterest's API to get the count of a link: $this->load->library('rest'); $this->rest->initialize(array('server' => 'http://api.pinterest.com/')); $return_data = $this->rest->get('v1/urls/count.json?callback=&url=' . $link); The response I get is: receiveCount({"count": 5743, "url": "http://google.com"}) You can try this yourself here . I don't want the callback and I tried setting callback= but the parenthesis are still present so I can't parse it via json_decode . Is there a better way of getting a pure json response without having to string replace the

Retrieve pinterest pin comments through the API

拥有回忆 提交于 2019-12-04 12:12:19
问题 I am using the v1 API ( https://api.pinterest.com/v1/pins/{PIN_ID}/ ... ) but there is no documentation on how to retrieve comments for certain pin. So how do you do that? 回答1: You cannot currently retrieve comments for a Pin via the public API. You can only retrieve the comment count. All available fields are listed at https://developers.pinterest.com/docs/api/pins/. 来源: https://stackoverflow.com/questions/32586202/retrieve-pinterest-pin-comments-through-the-api

How to get search feed from Pinterest API

泪湿孤枕 提交于 2019-12-04 11:15:21
I am looking to search feed of Pinterest API for Mobile Application. May i know how to get search feed from Pinterest API. There is documentation here https://developers.pinterest.com/api_docs/ about their api, however it is only for queries about domains that are verified and belong to your Pinterest account. This is deprecated as of 2019 and I think this can be a valid place to find what you're looking for. If you can use unofficial api, with py3-pinterest you can do it like this in python results = [] search_batch = pinterest.search(scope='boards', query='food') while len(search_batch) > 0:

message sent to deallocated instance using Pinterest SDK

寵の児 提交于 2019-12-04 11:12:09
I'm using the Pinterest iOS SDK to share an item in my iPad app. The following snippet of code will always crash with a message sent to deallocated instance on the line with the comment: NSString *clientId = [NSMutableString stringWithString:@"1431665"]; NSLog(@"clientId: %@", clientId); Pinterest *pinterest = [[Pinterest alloc] initWithClientId:clientId]; NSLog(@"gone: %@", clientId); // <- CRASH! I'm using NSMutableString stringWithString to simulate the conditions in my app. I don't actually use that line in my code. Even if don't output the clientId on the last line, the app crashes when

Integrating Pinterest with my iOS app [closed]

*爱你&永不变心* 提交于 2019-12-04 07:49:13
I want to post an image on to pinterest account from my iPhone application, there is no any API release from pinterest thats why i am trying to integrate it with URL Scheme but didn't get successed on it. Here is the code for it, - (void)pinThroughURLScheme { NSString *urlString = PinterestURLMake(self.image, nil, @"alt", @"image.jpeg", NO); [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]]; } NSString *PinterestURLMake(UIImage *image, NSString *urlString, NSString *alt, NSString *title, BOOL isVideo) { NSString *base64ImageString = [NSString stringWithFormat:@"data