That does seem to work – however you have a problem with the activation routine because it tries to do this:
DELETE FROM 'wp_usermeta' WHERE meta_key LIKE 'wd_fb_og_wpseo_notice_ignore'
Basically you’re getting regular quotes round the table name when using:
$wpdb->prepare("DELETE FROM %s WHERE meta_key LIKE 'wd_fb_og_wpseo_notice_ignore'", $wpdb->usermeta)
Same issue with the WP downloaded plugin (haven’t tried any of the links in this thread yet though, just saw new versions were pushed out):
Warning: getimagesize(http://friendlycomputers-southhouston.com//www.googleadservices.com/pagead/conversion/961231534/?label=xupXCLvg_FUQrvWsygM&guid=ON&script=0): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /homepages/8/d318281987/htdocs/clickandbuilds/FriendlyComputers/wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/wonderm00n-open-graph.php on line 497
nickth: Your external image link starts with //, right? I was only testing for http and https. We’ve made changes to accommodate that scenario.
Steve: Yes, I know. I’ve already fixed that.
Can you both try this one please?
https://meocloud.pt/link/c5a38584-b7d1-47d3-8c4d-14491094c592/wonderm00n-open-graph.zip/
This new version works fine.
joneiseman: I’m looking into that already. Still don’t know if I’m going to use the class or a little/simpler function I’ve just made.
This “ignore images under 200px” stuff really got more complicated than it should.
This should now be working fine for all of you on 1.4.
Topic marked as closed but feel free to re-open it if there’s still problems.
Looks like you left in a debug message in this latest version.
You are completely right. Fixed.
The new version works fine but I found that if I uncheck the new option (Force getimagesize on local file even if allow_url_fopen=1) that I then get the following warning message:
Warning: imagesx() expects parameter 1 to be resource, boolean given in /home2/jeiseman/public_html/classical-scene/wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/wonderm00n-open-graph.php on line 611
Try to increase the range on line 602 to 50000 and get back to me, please.
Also please provide me with the image full URL so I can test it out.
No I know why you’re getting 403 errors even with allow_url_fopen=1: you seem to have some kind of hot-linking protection active.
Anyway I’ve managed to copy the image from one of your posts and try it on my server. It does create the image at line 610: $im = @imagecreatefromstring($data);
Please try to remove the @ from the beginning of the function and post the error you’re getting on that line (if you get any).