Refer a single post in tumblr - tumblr

I'm making a page to publish my songs and wonder if and how can I refer to a single audio post instead of all of them ( as I would using {block:Posts} ), that way I could upload and access my audio files in tumblr with more freedom to customize the entries.
Can I refer to a single post in tumblr? If yes, how?
I've seen the {PostID} "property" in their help page, but how do I get the ID from the post in the first place? and how do I select the post with that id?

Do you want to do something like this?
{block:Posts}
{postID:314159}
…content of post with id equal to 314159…
{/postID:314159}
{/block:Posts}
If you do — It is impossible to do with current Tumblr template engine

Your best option is to either list links to the post into a separate page (which Tumblr will let you create) or some compilation post that you link to.
Your other option is to make sure your audio post share a common tag that you can refer to (http://yourtumblr.tumblr.com/tagged/mysongs). There may be advanced ajax-style techniques that will allow editing the theme itself to display only audio posts, but I don't know if or how.

Related

Is it still possible to create IFrame post?

I want to be able to post iframe on user's page, i.e. basically completely custom post with its own html markup and its own javascript. Something like when you post youtube/vimeo or coub video, they have their own players.
It seems to be possible just judging from the fact that there are apps exist which allow you to do it and there are also some guides on how to create "iframe app", but those guides seems to be pretty outdated.
I could not find anything about that in facebook docs. Canvas seems to be the closest one, but it's a page outside of user's timeline and I need it to be embedded in the timeline, like a post which can be shared, liked etc.
Any pointers to docs would be appreciated! Thanks!

"Top Posts" depending on facebook likes

I have an idea to create a "top posts" feature to my website, which creates the "top" list depending on how many likes and shares that a post have on facebook.
Users may see how many likes an post has received so far since they only have to ask for a single, defined url. However, the website itself has to be able to query all the links that are tied to itself (which have a predefined url template like website.com/[post-id]) to create the "top" list. Is it possible to do something similar (or achieve the same result in a different way)?
Any ideas on a real workflow about something like this will be appreciated!
this seems like a little but interesting project. I don't know if there is a feature that could get that directly in the way you want, but i did something similar.
First you have the Graph API, with that you can get the Posts of a user using feed, with that every post is telling you how many likes does it have which you can get with POST_ID/likes.
Then you'll have to check for changes in the post periodically comparing its created_time and updated_time.
This could seem very hard, because you have a lot of posts and you have to check them all for updates, but you can use batch_requests so you can check them all at once.
I have made a bookmarklet which shows top posts in the Facebook News Feed as well as Google+, Twitter and Instagram Profiles.
Just add a new bookmark in your bookmarks bar and replace its URL with the following code and save it, then go to the social network website and run it:
javascript:(function(){var s=document.createElement('script');s.src='https://niutech.github.io/topnewsfeed/topnewsfeed.min.js';document.body.appendChild(s);})()
The source code is available on GitHub.

Facebook do I need app_id to integrate open graph on my website

I have been reading about using Open Graph (OG) meta tags to improve the way facebook works with your website. I have read two tutorials that say to create an application and use the application ID. But I am not developing an application, all I have is a business page... Can I just the page ID?
Can anybody also point out any good, simple resources around the using OG in my website?
Thanks
The sharer.php method (which is deprecated) allows you to post without an application. The feed/post method appears to require an app_id, though it's possible that there's some way around that. On the bright side, there's nothing complex about creating an application, so, if that's what you must do, I'd say just do it :)
Here is an example of how it works *with an app using the feed/post method (you'll need to click the "Post to feed" link at the top (yes I know it doesn't look like a link!).
and Here is the same exact example only using Sharer (notice that this time it's pointing at a slightly different url (drawImageForFB2.php instead of drawImageForFB4.php).
I use a php to render the tags based on the vidId that I collect but that's neither here nor there... you could just as easily have this as a static HTML page.
The innards of the OG tag are just about identical and the app_id tag in the OG is entirely optional as it pertains to the second example).
Oh, and addthis does it using the dialog api which looks like this
https://www.facebook.com/dialog/feed?redirect_uri=http://s7.addthis.com/static/postshare/c00.html&app_id=140586622674265&link=http://support.addthis.com/customer/portal/articles/381222-optimize-facebook-sharing#.UQ8bBJM9KQk.facebook&name=Optimize%20Facebook%20Sharing&description=

Facebook like and recommendation button

I am integrating facebook like/recommend button on website "panjabiwave.com"
For recommend there is url ex. panjabiwave.com/video/22
Link for checking the recommendation is panjabiwave.com/videorecommend.
But the problem is when a user recommend a video .it is not reflected on the
panjabiwave.com/videorecommend link
Please suggest where i am doing wrong
Thx in advance
Recommend is only used for one single url at a time. There is no way to specify the url being recommended and then another for a specific url that the user will land on. Your best bet for passing the video # to the videorecommend page like
http://panjabiwave.com/videorecommend/22 which then can disaply the correct og meta tags (ogp.me) for the video that's really located at http://panjabiwave.com/video/22

Post multiple hyperlinks with an anchor text to a facebook wall via Graph API

I need to make a post to my facebook wall from my windows application. The post must have multiple links embeded within the post content. I can do it using Grap API but the problem is that I cannot specify an anchor text for links. The links themselves are very long so it's absolutly necessary for us to have an anchor text. But it seems facebook does not understand anchor text tags.
I know there is a "link" object but it's not an option because it allows only one "link" object per post.
Is there any way to post multiple links with an anchor text within a single post via Graph API?
Thank you
In short, no.
You can use a Link object, in which case you can supply a Message, Title, Description and Caption, but you can't actually hide the link, or display different text on your link - Facebook will always control how your hyperlinks work.
Other messages and Posts are plain text, so you can't use HTML formatting elements either.
It's all done to reduce the potentially hideous display of messages posted to Facebook, and to protect users from disingenuous link texts.
You can use Facebook Notes feature instead. Facebook Notes fully support HTML.
See this. How spotify have done this if formatting html elements are not allowed.
Facebook notes really support HTML. So yo can post links like this:
03131991saty