Witam, mam kod i coś nie działa (IMG:
style_emoticons/default/biggrin.gif)
Mógłbym prosić o poprawę albo chociaż podpowiedzi ?
<?php
$unlock1 = true;
$unlock2 = true;
$name = "Test skryptu Heheszki.pl";
$url = "http://4rapiddev.com/facebook-graph-api/facebook-publish-to-wall-with-popup-or-dialog-and-call-back/";
$obrazek = "http://4rapiddev.com/wp-content/uploads/2011/09/Example-Publish-To-Wall-With-Popup-Windows.jpg";
$opis = "I have experienced with Share On Wall with Popup windows and would like to share with you. Check it now.";
if $unlock1 = true and unlock2 = true
// Drukujemy początek skryptu
print "<script type='text/javascript'><!--\n"; print "status : true,\n"; print "cookie : true,\n"; print "<script type='text/javascript'>\n"; // skrypt łączenia share
print "window.fbAsyncInit = function() {\n"; print "status : true,\n"; print "cookie : true,\n"; print "<script type='text/javascript'>\n"; print "$(document).ready(function(){\n"; print "FB.getLoginStatus(function(response) {\n"; print "if (response.status == 'connected') {\n"; print "var user_id = response.authResponse.userID;\n"; print "var page_id = 'XXX';\n"; print "var fql_query = 'SELECT uid FROM page_fan WHERE page_id =' + page_id + ' and uid=' + user_id;\n"; print "var the_query = FB.Data.query(fql_query);\n"; print "the_query.wait(function(rows) {\n"; print "if (rows.length == 1 && rows[0].uid == user_id) {\n"; print "$('#blokada').show();\n"; print "<script type='text/javascript'>\n"; print "function streampublish_popup(){\n"; print "method: 'stream.publish',\n"; print "name: '$name',\n"; print "description: ('$opis'\n"; print "'type':'image',\n"; print "'src':'$obrazek',\n"; print "display: 'popup'\n"; print "function(response) {\n"; print "if (response && response.post_id) {\n"; print "$('#blokada').show();\n";; ?>
Ten post edytował kiepski96 6.06.2012, 18:54:37