I'm creating a WordPress plugin which lets the user connect his/her Facebook account, and in my Facebook App settings, I have specified the Redirect URI, but when the plugin is installed on other domains, I get an error that "Given URL is not allowed by the Application configuration...and etc.". Now, I want every time if there's a new user who install the plugin, I want to get the domain name and add it programmatically to my Facebook App's Valid OAuth Redirect URIs. Is this possible?
Is there a way to add multiple valid OAuth Redirect Uri's to your Facebook App programmatically?
1.3k views Asked by Dexter Bengil At
1
There are 1 answers
Related Questions in JQUERY
- In Datatables, start value resets to 0, when column sorting
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- window.location.href redirects but is causing problems on the webpage
- Using JQuery Date Slider
- Storing selected language in localStorage
- How to stop other divs from still showing when i click a different button?
- Check multiple values with jQuery
- Bootstrap component does not want to render in Datatables function
- put white spaces when entering an amount moneytype symfony
- Trouble accessing custom header in AJAX response using jQuery in Fiware Keyrock
- I just cant make it work, HTML, JS and Firebase error
- Didn't declared variable still not getting any error in JavaScript
- Move element horizontally while scrolling vertically in pure JavaScript
- allow multi carousel in same page
- Embedded TikTok posts / thumbnail styling issue
Related Questions in WORDPRESS
- How to add the dynamic new rows from my registration form in my database?
- Wordpress Site - pages have low text-HTML ratio
- wordpress delete unwanted location
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- How to change woocomerce or full wordpress currency with value from USD to AUD
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Caching private wordpress rest endpoints
- How do i get my close button to work on a popup?
- SQL query to get student enrolled in this month in a course - Moodle
- What wordpress plugin prevent sharing of contact information amongst users?
- Password protected or private URL one-time viewable video access
- Download button not working in wordpress website. How can solve it?
- WP toolkit problem after deleting wordpress site manually
- TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
- New Order Email Details Missing // Woocommerce / Woocommerce Bookings
Related Questions in FACEBOOK
- Facebook Post Images from local system on own Page
- Provide an archipelago name that humans cannot utter
- How can I look this email address
- Not getting all leads from Meta/Facebook using webhook for page leadgens
- Unsupported post request when trying to create a custom audience via the endpoint https://graph.facebook.com/lapi-version), (custom-audience-id/users)
- Java resized JPEG seems to be invalid format for Facebook?
- How to implement facebook pixel in flutter in 2024 any example?
- Need WhatsApp Data Backup from Api
- Facebook login via JS-SDK via OAuth will get stuck half-way
- Short time token with the Graph API and Facebook login through the iOS SDK
- Facing the "Messaging may be unavailable" error - WhatsApp Cloud API
- Facebook Graph API - Story endpoint does not return all active stories
- Javascript / Dynamically append text element above embedded facebook posts
- When I post text with media on Facebook, the text does not show
- How to search a list of groups using facebook APIs
Related Questions in FACEBOOK-JAVASCRIPT-SDK
- Facebook Post Images from local system on own Page
- Facebook login via JS-SDK via OAuth will get stuck half-way
- My Authentication is not working in published mode
- How to provide "Login Using Facebook" for external users when using "Facebook Login For Business" product?
- Facebook Login issue using web SDK
- Getting 'Minified invariant #21945;' error when implementing `Facebook Login for Business` using User Access Token
- Blank screen appearing rather than popup when trying to use Facebook login in my Vite React app
- When running ads on facebook for a web app, does using the facebook sdk help in any way?
- Unable to get custom label from page conversations api
- Facebook's Send to Messenger Plugin Not Working on In-App Browser
- Facebook business sdk giving "error_user_msg": "A tracking pixel is required for ads in a campaign with conversions as its objective.",
- Is there a way to change the version of Facebook Javascript SDK - Instagram Graph API
- How to post local images to Facebook via JavaScript SDK (v19.0)?
- How to post local images to Facebook via JavaScript SDK without URL?
- Configure facebook login button for Business not allowed to add config_id
Related Questions in FACEBOOK-GRAPH-API-V2.3
- how to post on instagram using graph api in php
- Facebook Graph API v2.4 likeview
- How can i test graph api before upgrade?
- Facebook throws a JSONException when fetching email value
- How to get all of the Facebook Graph API page feed?
- get list all groups facebook graph api v2.5 or how to use the v2.3?
- Unable to post to FB page using Graph API 2.3
- Facebook PHP SDK Version 5.0.0 like a post
- Photo post insights with Facebook Graph API v2.4
- Is there a way to add multiple valid OAuth Redirect Uri's to your Facebook App programmatically?
- Facebook Graph API Search results limit
- Lets get the source of the photo using photo ID
- When is Facebook App Review required, and what limitations will be enforced if an app is not reviewed?
- How to access events created by user in Facebook API by using Javascript?
- How to parse next page of Facebook (SDK 4.0) Graph response in android?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Since you considered my answer to your question on the FB Developer Group helpful, I’ll copy it over to here:
It is not possible to set Valid OAuth Redirect URIs for an app via API.
You have basically two options here:
Use your own domain to handle the login part. Use it as the redirect_uri in login dialog calls, and when users get redirected back to your domain from the login dialog, direct them back to their domain from there. Pass their domain as a URL parameter in your redirect_uri, or store it in your session.
Let users use your plugin with their own app id. If your plugin is not meant to be used by the public, but by the site owners themselves only (to publish their blog entries onto their FB page), they don’t even have to go through review to get the permissions your plugin asks for approved.
The second option is also the “safer” one for you. If someone publishes spam via your plugin, it might at one point get the app blocked. Now if you use one app for all users, they’ll all be sitting in the same boat – one misbehaves, app gets blocked, and all content posted via it will disappear (maybe only temporarily, if you can get your app unblocked in the appeal process, otherwise forever.) And that’ll mean a lot of angry support requests from your users …
If everyone uses your plugin with their own app id – then they will only get that blocked if they spam, and everyone else can continue to use your plugin using their own apps.