Facebook Posts and Multiple Actions - php

Can you post multiple actions (I want to do two) with a wall post using the Facebook Graph API? If so what is the format that should be used for the actions string. I can't get this to work for the life of me.
This piece of documentation describes the parameter as a array of objects containing the name and link. I used json to do this however I can only successfully do one action link and not two.

I think you are talking about the custom app-pecified links displayed in the wall post. No, facebook allows only 1, and tha'ts how the structure of facebook wall post is.

there is written here http://fbdevwiki.com/wiki/FB.ui#method:_.27feed.27 that only one action link allowed

Related

Get the complete html code from an album of facebook

I'm trying to get the html code from an album of facebook,once done that i want to extract the photo links,
but as we know all the photos are not loaded at once but as you scroll down.
When i use cURL it get only those links of the photos which are loaded at first.
Will there be a way to get the whole loaded html code through php?
Please bear with my english.
Thanks
EDIT: Well i was wanting to do the same on any page which have this kind of behavior not only on facebook. Thanks anyway
You will not be able to reliably fetch an album from Facebook via this method.
There are a small amount of photos sent with the original request and the rest are loaded via ajax. Using curl, there is no way that I am aware of to simulate the events that lead to said ajax load. You could call the original, and then subsequently call the other ajax endpoints but this method is likely to break the second fb changes anything.
As ceejayoz said, you should be using the fb api for this sort of thing.

Integrate facebook Like button for a specific element of my website

I have a website where i implement a wall of messages, the idea is to add to each of this wall messages a like button, where clicking on it would immediately post on the user's facebook profile page that he likes THAT SPECIFIC COMMENT.
Is this possible? I just enter this new world of facebook php developers, and as far as I have read here it always talks about adding a Like button for a specific URL. I would like to make the like button apply for the specific post within the messages wall.
I am clueless as where to start, if by the way any one could recommend a detailed tutorial on how to integrate a website to facebook in its different ways, i would really appreciate it.
EDIT:
Looking into #Kaan Soral suggestion of using open graph, I think it is important to add that I dont want each wall post that the user likes to appear in the "Likes and Interests" section of his profile... This wouldn't make sense because he would rapidly have loads of likes of separate wall posts.
Its possible, read this: http://developers.facebook.com/docs/opengraph/
You have to create a URL for every item that will be liked and on that URL there should be META tags for descriptions, image etc

Pull tweet upon provided tweet URL

I am trying to develop a CCK module, this module basically provides a field that handles a tweet URL.
On node save, Drupal will pull this tweet's text depending on the tweet URL i submitted and display it formatted.
Does Twitter API provide any function that handles this type of requests ?
Thanks
Yes, you can get the contents of a tweet.
http://dev.twitter.com/doc/get/statuses/show/:id
Ok, i figured a way out to integrate this with CCK in Drupal
http://batayneh.me/post/how-pull-tweet-pasting-its-url-drupal-cck

Display number of retweets of a blog post

I was wondering if anyone has a link to any information regarding building in Twitter Mention functionality into a website like here, http://paul.boagworld.com/?page=2, where each post dispays the number of times it has been mentioned on twitter.
Many thanks,
C
This website uses the following widget: http://www.backtype.com/widgets/tweetcount

Facebook-WordPress comment/feedback integration

Currently I have my Facebook profile automatically republish blog posts from a WordPress instance.
What I would like to be able to do, however, is to also have comments posted to either the blog of Facebook show up on the other in the appropriate location.
Is there a way to do this with the Facebook API?
There's a bunch of facebook-connect enabled WordPress plugins that might help you achieve this.
Here's a couple:
Sociable Facebook Connect
WP-Facebook-Connect
yoavf answer is good. A list including those plugins is maintained in Facebook's wiki:
http://wiki.developers.facebook.com/index.php/Facebook_Connect_Plugin_Directory
http://dentedreality.com.au/2008/12/implementing-facebook-connect-on-wordpress-in-reality has a novel approach that isn't on that list.
you need to go to the source of the blog, figure out how the comment form is posted (POST or GET) then you can use mock ajax documentation here. then inside the facebook app, you build a form similar to the one for the blog comment. make sure all the ids of the respective form elements are identical. then on your submit button you have a link like this.
<a clickrewriteid="dummy" clickrewriteform="comment_form"
clickrewriteurl="blog_form_action">Submit</a>
so dummy is the id of an element that will recieve any output.
comment_form is the id of the form that will be posted to the blog comment processor.
blog_form_action is the url in your blogs form action attribute.
if things work, the form comment_form will be posted to your blogs processor page so that the comment submitted from facebook will appear on the blog as well.
if the blog uses GET as its method, you just make sure that blog_form_action contains the query string
hope that helps!

Categories