Upload photo with only publish_actions permission - html

I've seen a few apps around that only asked for access for users_photos and publish_actions (not publish_stream or photo_upload). They are able to somehow upload photos, I think without even being approved for User Generated Photos (ie: Instagram).
How do these apps do this?

When you push an action (which you can do with the publish_actions permission), the object from the action can contain an image (through og:image). If so, an image is then shown on the timeline of the user and the newsfeed from his friends. However, the image is smaller as if you had posted it through a publish_stream or photo_upload).

Related

Check that a link has been clicked

I would like to keep track of how many times a certain link in Google Spreadsheets has been clicked. I have been searching but I can't seem to be able to find how to check whether a link has been clicked or if it is possible to attach onclick event on a link.
A quick solution is to use the Google URL shorten service for the links. This page gives you the number of clicks per link.
its not possible, you cant detect cell or link clicks.
Two possibilities here:
One way is to have a server (or an apps script service) be the link "proxy" and redirect to the final site as in:
script.google.com/.../exec?url=myurl.com
your script tallies the hit and then redirects the user. redirecting without an extra click might not be possible with apps script htmlService but its possible on your own server.
you can make the urls look pretty by using =hyperlink in the cells so users dont see the long url (until click)
Another way if you have control of the links you are pointing to is to use analytics on those pages. You can use the referer to tally views that came from a spreadsheet click, or you can explicitly add parameters to each url so that youcan later filter those comming from your sheet.

Html signatures: how to prevent user editing

I have made some .html signatures for one of our clients, and there are two things they want I can't figure out how to achieve.
One of them, the client wants the text inside the signature to not be editable by the user, that is to prevent them from accidentally changing something in the signature when sending an e-mail. Is this somehow posible?
The second issue, they said they can resize the images in the signature using the mouse. I also need to prevent this so that they cannot accidentally deform the logo or enlarge or diminish it. How can I do it? I tried setting width and height attributes to the images, but that doesn't prevent them form resizing it at will.
Any help or orientation will be really much appreciated.
Thanks
maybe you can create an image with the entire signature, so it won't be editable.
EDIT
Take a look at this link, maybe you will be able to add the signature after the send button is click.
How to modify email before sending
There are a few options:
1.) If you use an exchange server, you can set a Group Policy to add a signature server level and then another to remove permissions for signature access to all users. This will give you 100% control on all Outgoing messages. This is supposed to be used for disclaimers, so in a long email chain, the signatures may wind up at the bottom of the chain, not the message. See for more info: http://www.howto-outlook.com/howto/corporatesignatures.htm
2.) Another option is to run a script. This option steers away from using Group Policy, but I believe it would require action done on user level for each person, which may be an issue in a larger company. See here for more info: http://www.edugeek.net/blogs/thescarfedone/1016-centrally-managing-signatures-outlook-owa-free-way.html
3.) Last option I know of is to make signatures folder read only and insert the signature file directly on each person's computer. This is a very manual process and time consuming and certainly not scalable. See here for more details: https://support.office.com/en-us/article/Copy-email-signatures-to-another-computer-4e03286f-2246-4d7d-ae95-a4cc1992595a?CorrelationId=0db01a3d-f8b9-4bfb-af86-37cd4dcf6ef9&ui=en-US&rs=en-US&ad=US

Forcing popup when coming from external websites (e.g google)

I work for a restaurant guide in the NW of the UK and we basically have featured restaurants (the ones who pay a monthly sub) and non-featured restaurants (the ones who get a basic free listing).
We were looking to get some kind of popup appearing on the non-featured restaurants, but only if they came from an external site, e.g Google.
So the steps would be:
1) User goes to google and puts in "name of unfeatured restaurant"
2) Our company comes up with the basic listing of that restaurant
3) User clicks the link but is then presented with a popup of featured restaurants
But, we would only need the popup to appear if the user has come from an external site. So if they were they came internally from our website the popup wouldn't show.
We use ASP at work and I was thinking it may possibly need some kind of a variable being passed through, or maybe something to do with cookies but I'm not an expert on the ASP side.
Hope someone can help on this :)
To see where a user came from you can try:
<%=Request.ServerVariables("HTTP_Referer")%>
This would contain the referring URL. if you want to use it on subsequent pages, you'll have to store it ofcourse in a cookie or session variable.

How to hide google Script activity in google Site recent changes?

My google-apps-script is regularly updating the content of my google site List page. Every entry it deletes or adds is added to the "recent changes" of the website, making this list useless, cluttered with "you deleted/added an item to list...".
Is there a way to prevent the logging of these modifications by the script, exclude that particular page from the recent changes listing, or exclude the actions of a given user to be recorded (or displayed)?
Any suggestions would be appreciated,
Thanks.
Berteh.
As far as I know there is no way to prevent these changes from showing up.
manage site -> general tab, option is at very bottom, perhaps its a new change. You can specify who can see the recent site activity and revision changes and set it to collaborators (people allowed to edit the site) only, so it is not visible to public.

URL form retrieval and submission via flash?

Totally new to flash and actionscript. What I want to do is retrieve a URL into a page (probably in a hidden frame or something), populate the form it contains with the correct fields (via my script), including possible data to upload, then submit it back. I guess an analogy use-case would be if I had a user choose a picture and then which site to upload it to (tinypic, flickr, etc), the script would download the main page, fill in the form data, attach the pic, and submit it. I saw a similar example in php somewhere, but I need to do it in flash.
I can probably get it eventually by myself, but if someone could point me in the right direction (keywords, functions to use/avoid, etc) I'd really appreciate it!
Rather than retrieving the form and trying to fill it out just use actionscript to directly post to the server side script.