How to do wall post in WAP based facebook mobile app? - facebook

I'm doing a facebook application for (WAP based)mobile browser. I need to show the post dialog. When i use the following code for wall post it show error.
http://m.facebook.com/dialog/feed?app_id='.$app_id.'&redirect_uri=$redirect_url&display=wap
The error is:
API ERROR CODE:3
API Error Description: Unknown Method
Error Message: This method isn't supported for this display type
While I give display type as 'touch' in the above mentioned URL it works fine in the touch devices. But no form displayed in the wap browser.

That's strange, because their documentation does mention that is the method to do it: http://developers.facebook.com/docs/reference/dialogs/
I notice an error in your PHP though (unclosed apostrophe):
It should be:
'http://m.facebook.com/dialog/feed?app_id='.$app_id.'&redirect_uri='.$redirect_url.'&display=wap'
Here is a similar issue on https://github.com/facebook/facebook-android-sdk/issues/177
Also, check out facebook's bug tracker: http://bugs.developers.facebook.net and perhaps file your bug there and then link to it from here.

Related

Failed to get composer template data

Few of our websites like womens-health.com.my, mens-health.com.my, and elle.my having problem post any article to Facebook. When I test any URLs of these websites in Facebook Debugger, it gave me warning messages said that Failed to get composer template data. and Critical Errors That Must Be Fixed. I have no idea what causing this as other of our websites are working fine.
It's an actual Facebook bug, which is being fixed right now: https://developers.facebook.com/bugs/918385908182634/
In summary, you can fix this by making sure that article:author only contains Facebook user IDs or Facebook profile URLs.

Facebook link preview not showing for a phpBB3 forum post

I have this forum running on phpBB3 forum software. It is working fine by itself. But when I try to add a forum post link on facebook, it does not show preview of the page. When I tried this with facebook debugger (https://developers.facebook.com/tools/debug/), it shows me RNF error (HTTP 404) for my post because it does not append required parameters to the URL.
This is what I see on the facebook debugger page -
Scrape Information
Response Code 404
Fetched URL http://mysite.tld/forums/viewtopic.php?f=9&t=25
Canonical URL http://mysite.tld/forums/viewtopic.php?f=9&t=25
Final URL http://mysite.tld/forums/viewtopic.php
Is there a way to tell facebook to consider the query parameters of the URL as well?
I did try adding og:XXX tags in the header but it didn't help in any way and I continue to see 404 errors in facebook debugger.
I do not think adding tags is a problem because I tried this URL in facebook debugger and it could feth the title and all other details correctly for this URL.
https://www.phpbb.com/community/viewtopic.php?f=72&t=2120397
And I see that these forums do not have any face og:XXX tags here.
What might be causing problem for my forums and how can I fix it?
Any pointers, inputs would be highly appreciated!
TIA,
- Manish
I have already searched the questions here, and didn't find any pointer. I have already done my homework regarding facebook debugger and link preview, so not sure why it has been voted down.
I have figured it out. As it turned out - the bots didn't have the cookie set and hence were getting HTTP 404 response (a possible bug in custom style: fresco). Once I realized that this problem was due to cookies, I edited all the bots (ACP >> General >> Spiders/Robots) to use default phpBB style prosilver. Once that was fixed, facebook started showing link previews properly!

Facebook graph API unknown http error

I am attempting to use the Facebook JS sdk to retrieve my friends list via FB.api("/me/friends") , but I keep getting the following error: {"type":"http","message":"unknown error"}
When I view the request in Chrome debugger tools it shows the request as failed, but copying the url and going to it in a new window pulls down my friends list data as expected.
Has anyone seen this before?
This was caused by the Avast security plugin blocking social networks.
I also had this problem and it seems that Facebook doesn't like if you put the protocol on the app domain and site url fields inside app settings. I had https://blabla.... Removing the protocol solved the error for me.

Error sharing url in cyrillic

Can't share a url in cyrillic: http://вода-серебряная.рф. My site uses facebook.com/sharer/sharer.php to achieve that. The url is already transformed to punycode (http://xn----7sbbdcmja7ed0aci5rc.xn--p1ai/) with FB at this step.
When I click Share Link, an error is returned with the following message: Could not post to Wall. The message could not be posted to this Wall.
I've also checked the url at developers.facebook.com/tools/debug and it returned the following error: Error Linting URL: An internal error occurred while linting the URL (see the result).
Is it a FB bug or how can I fix this?
Facebook isn't currently set up to support Internationalized domain names. If you file it at the Bugs Tool, it'll be tracked as a feature request there.
edit - known issue - https://developers.facebook.com/bugs/466343236740917

facebook does not see my domain

I've been having issues recently with setting up links between Facebook and a website I've developed - www.newcarpromotions.co.uk. After some digging around, and advise on this forum, Ive used the following link to see what Facebook thinks of my domain:-
http://developers.facebook.com/tools/debug/og/object?q=newcarpromotions.co.uk
What it returns is as follows:-
"Error Parsing URL Error parsing input URL, no data was scraped"
Now Ive tried all my other domains which return all the correct information as you would expect.
Has anyone seen this before? It looks like Facebook doesn't think my domain exists! If that's the case any idea how I can get this resolved?
Nick
According to this post (Linter gives "Error parsing URL" error) it seems that the facebook object debugger can return that error if it fails to parse your page somehow. I'm suggesting that facebook can get to your website but is failing for a different reason. You may want to look at your request logs to verify that facebook is hitting your site.
If worse comes to worse you can open a bug here: http://bugs.developers.facebook.net/