views:

108

answers:

2

I am new to facebook development. I am using PHP-FBML with Graph API.

Edited: Or can I use JQUERY with php-sdk(fbml, not iframe). If yes then how?

Please someone help me out.

+1  A: 

<fb:multi-friend-selector> can be used only to send invites inside a request form.

You can use <fb:fb:multi-friend-input> though, which is also friend selector but slightly different. If you put it inside your own <form> it should pass selected friend ids with form submission. You can read about this process here in details.

Once form is submitted you need to process it on PHP side. Loop through array of selected friends and send posts to their wall using PHP SDK (you can read here how to do it through Graph API).

jQuery doesn't work inside FBML, but you won't need it for this anyway.

serg
+1  A: 

No, because it's against the policy

Section IV.5

You must not provide users with the option to publish the same Stream story to more than one friend's wall at a time.

Peter Bailey