Hi i have a question about how to create a pop up dialog using facebook application, i found some examples but it doesn’t worked for me, now i loaded my friends then beside the profile pic of my friends in have a button name select, where if i select that current friend it will now pop up the image and name then have a button continue how should i do that???
thanks for your future suggestions.
this is my code:
foreach($friends as $friend) {
echo "<fb:profile-pic size=small uid=$friend linked=false></fb:profile-pic><fb:name useyou=false uid=$friend firstnameonly=false></fb:name><br><input type='button' value='Select!' onclick=' return showMe()'></td>";
}
<fb:js_string var='get_selected_friends'>
<fb:fbml>
<fb:profile-pic size=small uid=$friend linked=false></fb:profile-pic>
<fb:name useyou=false uid=$friend firstnameonly=false></fb:name><br>
</fb:fbml>
</fb:js_string>
<script language='javascript'>
var dialog;
function showMe()
{
dialog = new Dialog();
dialog.showChoice('', get_selected_friends);
}
</script>";
when i click the select button the dialog pop up my friend that was last kon the list, what i want is when i click the button it could pop the current user i click. hmm hope that i stated it clearly here.
thanks a lot