Is it allowed to fetch pictures with users permission? - rules

I'm build an image site right now, and I have of course implemented Facebook login to make everything convenient for the user.
My plan was to build a function where a user could go in and look at the pictures they have on Facebook, and click on the one the want, and then my script would use CURL to get the image and upload it to my server.
Is that allowed ? They of course have the possibility to delete the images afterwards if they don't want it there anymore.

Related

Sending a firebase dynamic link over SMS from the desktop page

I have firebase deep links working in my app, and when a user visits them on desktop it takes them to a custom webpage I made that says "This content is only available on the app. Please download it to continue" with app store links for my app.
I want to add a form that says "enter your phone number to get texted the link to download the app" and I have no issues doing that with twilio.
Where I'm stuck is that I want to SMS the original deep link to the user. But the firebase deep link system already redirected me to the desktop page so I don't have access to the deep link anymore. Is there any way to get the original deep link?
I do have the path of the original deep link in the URL so I could possibly reconstruct it? But is there an easier way, or an existing solution to my problem of wanting to get users to install our app without losing the deep link context?
If you create your originally link manually you can use the Other Platform Parameters ofl to send a parameter of the dynamic link to be sent in text message to the desktop users.
See the doc's on how to manually create your link.
Alternatively, in the past I've added a parameter to the short link which has been passed through to the webapp, maybe you could use that to pass the dynamic link. Not tested, but should have the desired effect.

How to restrict viewers from downloading until they subscribe to my wordpress site?

I have some pdf's link on my site. I want whenever someone tries to download those pdf's, a popup will pop for a subscription. Now the main thing is I don't want users to cut this popup unless they subscribe to my website.
Pdf's to be allowed to download only after subscription process.
Note : There is no login or signup option on the website. It is just a normal surfable website with some pdf's link.
This plugin should do what you're looking for:
https://wordpress.org/plugins/email-to-download/
I've used it before and it worked fine back then.

how to confirm? before install application in shopify

I have created a shopify application. While I click on "install app" button from the application store of shopify, it's directly redirect to me in a callback URL. But what I want is: when click on "install app" button I need to display a confirm screen before installation.
See this for reference: ( I want to make like this).
For the reference jpg.
Shopify does this for you the first time the app is installed. It's a similar process to how Facebook and Twitter apps work. The first time you try and use it a permissions screen + confirmation button will pop up. Subsequent installations won't do that since the shop has already authorized the application.

Console PHP app posting to timelines

Objective
We're developing a PHP console app that will be a running as a daemon using the PEAR System_Daemon class. The script is ideally a timed loop, that executes indefinitely until terminated.
What this loop does is query a database of players of our FB game on timed intervals, and then make posts using certain criteria to their Facebook walls/timelines.
Our app will be hosted on our Facebook page, which will also contain some albums, photos and videos that we are using to feature on these posts.
Posting on Walls/Timelines
My question is, whether we would be able to use the Facebook PHP SDK to, from within our console application, running as a service, share these albums from our console app, as posts on the users timeline, without having need for confirmation from the FB user in any way, providing we have acquired the appropriate extended permissions of course.
Appearance Sharing vs Uploading
Will the appearance for sharing an album, or video appear the same, on the users timeline as if they posted it themselves, or will the post simply appear as a thumbnail with text next to it.
I've noticed that Facebook nowadays posts photos in a neat collage with more than one thumbnail, and this is the effect that we want to achieve. Also, if not mistaken, I believe that videos added to your wall post also shows inline, as a nice large video, instead as a thumbnail.
Would we rather have to upload these images to a Facebook users account, and if so, is it possible to create new Albums on a users FB account, using the PHP SDK, and the required extended permissions granted? Or can we achieve the same look and feel by simply sharing?
Hosting media externally
Can we add photo's to users profiles, hosted externally perhaps, that will allow the PHP script to post them to an album on their account without needing to upload?
We are trying to avoid uploads, as this will have a performance impact on the server side application.
Providing you request the correct permissions, you can upload photos to the user's account using the Graph API quite easily. To post multiple photos you will have to make multiple API calls. If you post to the wall, the photos will be added to the "Wall Photos" album.
The Graph API does allow you to create albums on the user's behalf, and lets you upload photos straight to the album too. This will create photo stories on the wall like the image you posted in your question.
What you can do, however, is host the files externally. Facebook will always load the images from their server so you have to upload them to facebook. If you want to host the photos externally, you must post the images to the user's wall / timeline as links, but these won't appear under the user's Photos or under Albums.
Hope this answers all your questions. Documentation for uploading photos and creating albums can be found on the Facebook developer website.

Page Administration & Open Graph

I'm an Admin for this page
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.westberks.gov.uk%2Findex.aspx%3Farticleid%3D23789
and I've also specified that my App can administer it too. I've Liked this page so I thought I should be able to access the admin screen for the page but I can't seem to. Any ideas on how I access the admin screen for this page in FB, so I can manually publish updates?
Additionally, when I try to update page programmatically I get the message
(OAuthException) (#200) The user hasn't authorized the application to perform this action
but the page has my App listed here
http://graph.facebook.com/10150303466842688
This was definitely a bug rather than a programming or setup issue. The bug has been marked fixed by Facebook as of 1/18/2012 and everything now works as it is supposed to! Bug report:
http://developers.facebook.com/bugs/308356579205492?browse=search_4f0f1475c470b2076799347
Until this recent fix, there was a problem where OpenGraph pages did NOT allow the admins of those pages to retrieve page access tokens for them. Which means they were locked out of posting "as the page" and apparently also locked out of the Admin area for their own pages as well.
I know that this is fixed for me now with this bugfix, and hopefully it will also be fixed for everyone else.
You will need to ask for manage_pages, read_stream and publish_stream. Once your admin accepts those permissions, the app can call me/accounts on the Graph (play here https://developers.facebook.com/tools/explorer). In there will be a list of all the pages they admin. In each listing will be a unique access token. This is called the page access token. Using that token you should be able to read and write to the me/feed for that page.

Resources