To me it seems like a temporary problem or something wrong in Facebook end. You better ask this from Facebook guys too.
I looked into your code and see there is an iframe withing your page. The problem is the src of the iframe is not correct. You are setting following URL as the iframe src which have something incompatible character which breaks the format of the URL.
If you try by removing the characters which I haven't included as the hyperlink (i.e. characters after the 'Content.aspx') you will see it's working. I'm not sure what's this URL but it breaks because of the later part of the URL. I removed each and every
part and tried appending one by one. All are good except the last part.
msomar
Participant
843 Points
390 Posts
Facebook error
Jan 29, 2012 03:07 PM|LINK
Hello,
could some one help me to solve this error
take a look www.al-kaff.com
my code is :
<!--Facebook jsdk --> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/ar_AR/all.js#xfbml=1&appId=186820034678071"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <!--end of Facebook jsdk --> <fb:comments numposts="20" width="500" publish_feed="true"></fb:comments>Ruchira
All-Star
42926 Points
7023 Posts
MVP
Re: Facebook error
Jan 29, 2012 03:39 PM|LINK
Hi,
To me it seems like a temporary problem or something wrong in Facebook end. You better ask this from Facebook guys too.
I looked into your code and see there is an iframe withing your page. The problem is the src of the iframe is not correct. You are setting following URL as the iframe src which have something incompatible character which breaks the format of the URL.
https://www.facebook.com/plugins/comments.php?api_key=186820034678071&title=%D9%85%D9%88%D9%82%D8%B9%20%D8%A7%D8%B3%D8%B1%D8%A9%20%D8%A7%D9%84%D8%B3%D8%A7%D8%AF%D8%A9%20%D8%A7%D9%84%D9%83%D8%A7%D9%81&url=http://www.al-kaff.com/ar/Content.aspx%3FId%3D97%26MainType%3D%25DE%25D5%25E6%25D1%2520%25CA%25C7%25D1%25ED%25CE%25ED%25C9%26Title%3D%25DE%25D5%25D1%2520%25DA%25D4%25C9%2520%25C8%25CA%25D1%25ED%25E3&width=500&xid=http%253A%252F%252Fwww.al-kaff.com%252Far%252FContent.aspx%253FId%253D97%2526MainType%253D%2525DE%2525D5%2525E6%2525D1%252520%2525CA%2525C7%2525D1%2525ED%2525CE%2525ED%2525C9%2526Title%253D%2525DE%2525D5%2525D1%252520%2525DA%2525D4%2525C9%252520%2525C8%2525CA%2525D1%2525ED%2525E3
If you try by removing the characters which I haven't included as the hyperlink (i.e. characters after the 'Content.aspx') you will see it's working. I'm not sure what's this URL but it breaks because of the later part of the URL. I removed each and every part and tried appending one by one. All are good except the last part.
Title%253D%2525DE%2525D5%2525D1%252520%2525DA%2525D4%2525C9%252520%2525C8%2525CA%2525D1%2525ED%2525E3
Above is the line of code which cause the error. Remove it and try again.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.msomar
Participant
843 Points
390 Posts
Re: Facebook error
Jan 29, 2012 04:07 PM|LINK
coud you tell me from where you bring this
https://www.facebook.com/plugins/comments.php?api_key=186820034678071&title=%D9%85%D9%88%D9%82%D8%B9%20%D8%A7%D8%B3%D8%B1%D8%A9%20%D8%A7%D9%84%D8%B3%D8%A7%D8%AF%D8%A9%20%D8%A7%D9%84%D9%83%D8%A7%D9%81&url=http://www.al-kaff.com/ar/Content.aspx
Ruchira
All-Star
42926 Points
7023 Posts
MVP
Re: Facebook error
Jan 29, 2012 04:23 PM|LINK
From your source code.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.msomar
Participant
843 Points
390 Posts
Re: Facebook error
Jan 29, 2012 04:35 PM|LINK
ok Mr.Ruchira
please go on with me.
lets start from first
I shoud start from here
http://developers.facebook.com/docs/reference/plugins/comments/
is it trus?
then I got this code
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-comments" data-href="http://al-kaff.com/content.aspx.com" data-num-posts="2" data-width="470"></div>true?
but my problem is
it is a static url , so how I can take the actual url with parameters as this
did you understand me?
Ruchira
All-Star
42926 Points
7023 Posts
MVP
Re: Facebook error
Jan 29, 2012 04:42 PM|LINK
Yeah that makes sense. But I don't have any idea about your code since I haven't done that myself.
You mean you need it to be with query strings? If so, pass the URL as you need it (With query strings) to your data-href attribute.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.