Trouble linking the consumer key to my Soundcloud using application.js - javascript

I am trying to recreate the link in my own personal site. I have included all files that are necessary, and linked to them accordingly. I followed the instructions from this page http://soundcloud-sm2.heroku.com/docs/application.html and at the point where it says Pass a consumer key, which can be created here, and your playlist url. I created an app and copied the client_id which I'm presuming is the "consumer key" and put in the link to a set i created. For some reason it doesn't seem to be working. Am I supposed to fill in all the fields when creating the app or are they not necessary? I'm building in my localhost, am I supposed to be live for it to take affect?
Here is what I am trying to achieve working, I just don't know where I'm going wrong. http://soundcloud-sm2.heroku.com

Related

Wordpress Custom JS Location

We decided to go to another provider and rebuild the website. Accidently, we moved the old domain as well and we can't access the wordpress backend nor the frontend anymor. Now for the new page, I need a Custom javascript code I entered on a specific page with Elementor. Where can I find my old code now without accessing the homepage? I have FTP and Database access.
Where do you put the code? Depending on the answer you need to look at different locations.
Afaik elementor doesn't support custom js nativly. You can bypass that with a html widget or custom plugin. If you used elementors gui for that it's probably stored like all other elementor related content inside wp_post_meta of your database.
If you don't know the page where it was used I would suggest to export the database as sql and use an editor to search for a text string related to the code (for example the url of the ajax request).
If you know the page you can do the same but faster. Look for the id of the post with the code, search for it in wp_post_meta and go on like mentioned before.
If you havn't used elementors gui the script could lie inside a directory on the server probably inside your theme.

Open custom app with a payload using a URL

If this heading is not clear, I’ll clarify. Before that I have to mention that this question is not a homework but I’m curious to make this kind of an application. But couldn’t verify whether following problem can be solved. So please help me to verify whether this is possible before I start my project.
Let’s say I have a custom developed app which select best image of the week of a weekly competition. Also users can vote and share voted images on facebook. However let’s say there are two persons called X and Y. X has already installed the app and he can vote and share images. And when it comes to Y, it has two scenarios.
1) Y also have the app installed. So when she click the URL X shared, this URL should open the installed app and should view the relevant image with details such as votes and shares.
2) Y still have not downloaded the app. So URL should bring her to App Store or Play store based on mobile platform.
Second scenario has a solution. But when it comes to first one, how can I push the payload ( details of images and content) with the link to show required details whenever app completes loading? I went through lots of articles but still couldn’t find a solution. Can someone help me?
I found a solution for my need.
It's better to call an API to get data I need using an image ID which is unique to each images. So each link of an image contains the app URL with image ID. So when app opens by an external link,Which can be captured by using Deep Link (React native Linking Library) and API call will make to the backend and get all relevant data.
This tutorial shows all relevant steps to do that.

How to stop a user from copying plain texts from my page and also from downloading any images in my post, nor can he right click onto the page?

Car-renta-system,
these people did it awesome, can i know how to do the same please, using django I'm also building a similar project like this
You can prevent it from being copied by removing read permission from the user that shouldn't be able to copy the file. You can use os.chmod for this, or see this page explaining to set permissions with the full Windows security model.

Website FB login redirects to blank page

I'm getting a blank permissions page on facebook login using the Javascript SDK. It was working for the last few days and I'm not sure what I changed. I don't seem to be using my app secret anywhere (I do define the API key). Are there any suggestions for troubleshooting? The Facebook debug page unfortunately just had me add some meta tags related to open graph which didn't change anything. I've tried looking at the 100s of other questions like this but can't figure it out. I tried reverting to an older version of my code so I'm pretty sure it's something with the Facebook, but it was working.
The blank page is in the popup window and has something about permissions in the URL. My site doesn't require any permissions though.
This is the URL in the login window after signing in:
https://www.facebook.com/dialog/permissions.request?_path=permissions.request&app_id=number_I_removed&redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D11%23cb%3Df8917d1784b726%26origin%3Dhttp%253A%252F%252Fpostacle.com%252Ffd565a0d8d775e%26domain%3Dpostacle.com%26relation%3Dopener%26frame%3Df12565ffe5570f2&sdk=joey&display=popup&response_type=token%2Csigned_request&domain=postacle.com&fbconnect=1&from_login=1&client_id=number_I_removed
If I reload my page I'm signed in correctly. The app ID and Client ID are the same in the URL. Not sure if they should be but wasn't specified a client ID or means of generating one.
OK, so of course I left out a critical detail: I'm using Django. Further, I'm so reliant on Django I was serving my Facebook channelUrl in a view. Facebook's API didn't like that. After reading the story of a similarly cursed fellow, I changed my ways: URL links directly to channel.html file. No more sorrows.

iphone, uiwebview with JS (google maps API)

two question for you:
reading google documentation i've make an html with the JS for make a google maps api call.
I've put this file in my project, and in a TABView i read and render this file in a uiwebview.
Works great but every time i start my app and go to this view i got this message: "appleweb://someID want to use your current location".
Is my fault or is normal? why my authrization is not saved in position auth?
Second: if i must make some other request on my map and passing new data or refreshing existent data is better that i do this via javascript or there's some option in cocoa to refresh my view?
It is surely not your FAULT, and yes it is normal. user location authorization SHOULD NOT be saved because the next time user launches his app he wont be knowing that his current location is being used (just in case he wants to avoid that for whatever reason).
I dont know the answer to you second question but just a suggestion: why don't you use MapKit API provided by apple instead of going with html and js for google maps? It is pretty easy to use and theres enough documentation and sample codes available on ADC.

Categories

Resources