Upload Base64 Image Facebook Graph API i want to use this script that link is attached how i can use this in my wordpress post? i want to use this for fbcover photo site.
相关问题
- Display product ACF field value in Woocommerce tra
- facebook error invalid key hash for some devices
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
相关文章
- wordpress新增页面如何个性化设置
- Facebook login for group members
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Woocommerce update shipping methods in checkout vi
- The method FB.api will stop working when called fr
- React native deep linking vs Facebook SDK conflct
- Change order status just after payment in WooComme
I needed this too, and was not happy with all the code around it because it is lengthy and usually needs jQuery. Here is my code for uploading from Canvas to Facebook:
Source: http://www.devils-heaven.com/facebook-javascript-sdk-photo-upload-from-canvas/
Take a look at this code I hacked together from various examples - you can use this to post a pure base64 string to the Facebook API - no server side processing.
Here's a demo: http://rocky-plains-2911.herokuapp.com/
This javascript handles the converting of a HTML5 Canvas element to base64 and using the Facebook API to post the image string
This handles the Facebook Authentication and shows basic HTML setup