I've a php application that allow you to change your Timeline Cover picture posting a photo to an album, and with the retrieved ID, redirects you to:
http://www.facebook.com/profile.php?preview_cover=[photo_id]
Also, if you paste directly that link on your browser with a valid ID, it works perfectly.
But on android it does not. Even if I change to-
http://m.facebook.com/profile.php?preview_cover=[photo_id]
What's the way to do this on android?
In case others come across this -
I haven't found a way yet to change the cover photo image within the m.facebook.com environment.
You can, however, add &ref=pb to the end of the URL to force the Desktop experience in mobile.
This isn't ideal, but does allow the user to set their cover photo:
http://www.facebook.com/profile.php?preview_cover=[photo_id]&ref=pb
If I come across a better implementation, I'll update this post.
Related
Good day.I want to create an share field like facebook.In the facebook if you insert an link it will automatically get the lets say 'short preview' of your link with an title and image.I dont think that facebook got in touch with whole wordls website databses so it gather them from databases but rather parsing the url somehow.Anyway lets imagine i have an edittext with user letting input some ulr.How can i achieve this kind of technique?By googling i did not find anything closer to what i want.
Facebook downloads the url and displays the title in the header and a few lines of text. A prominent image on the page if it finds one. You'd have to do something similar- download the url, parse the html, and grab enough info to make your preview.
Most of the websites have og(Open Graph) tags in them. Check out the Facebook Open Graphs Website to understand more about these tags. You can fetch data corresponding to these tags and that is what most social media sites and WhatsApp do to provide a preview.
We have our own Artwork and photography images uploaded in different websites like Tumblr,500px,Deviantart,Flickr etc.So for every image there will be already some URL which is publicly available for everybody to view or download.
Example of such a URL is : http://40.media.tumblr.com/b12772f7533b6283ca008ba8d7ec2192/tumblr_nsezua4hur1r4xqayo1_500.jpg
Like there will be a lot of URL, and we are able to show this in our app and app let user to download this URL. Since the server is not our own, But the images are our own, are we allowed to use these urls in our app to show as a gallery app and let the user download it to their own.
Is it allowed? This is related to programming, because we have seen same websites providing their own APIs to fetch data. But we dont want too many details, Our requirement is simple, So we are trying to keep it simple and economical.
You should be fine, but check that the URLs don't change, or you'll be left with a lovely little error.
I recently begun working with android.
I have created registration form with some basic fields. its working fine, but here task is to upload pic along with this form fields to the server. Pic can be choose from existing or can capture with cam. Please any one suggest me best way of doing this task.
You might be able to do this using a html form in a webview, I don't know if its the best approach, but it could work for you.
The html form will include a set of inputs, and an image upload button.
The form can then be posted to your database/other application
I've been looking over the API for the camera in IceMobile and it seems the only thing you can do with the picture after taking one is to upload it?
I need to be able to save the pictures to a specific location on the device(It's not just a phone) with certain names and was hoping I could integrate my current JSF application and add the camera component to the page and start taking pictures.
If this does not work I already have an idea of what I'll do to make it work as a native app, but am really hoping to use IceMobile as the rest of the website could have potential for other ideas in the business mobile app and would like to keep it a single app. Thank you.
This is not currently possible with the ICEmobile API, and the ability for the web application to save a file to an arbitrary location on the device is potentially a security issue. So, it would be necessary to define a restricted, secure version of this feature for it to be added to ICEmobile open source (such as either allowing the user to browse to the location, or specifying the save location to be a well-known location for photos).
Since this is a feature request and does not have an "answer", please contact product.support#icesoft.com or post on the ICEmobile forums to discuss further. Once that discussion is complete, the final result can be posted here as an answer.
I've not been successful in searching for this answer, but basically, how can I find the image file name from a website that blocks saving of the images? Normally, the url source will have the image filename and it is easily searchable.
However, some sites lets you hover over the picture and it then zooms to a larger image. The source shows,
for example,
http://example.com/pictures.aspx?ImagePath=ABCDEFGHIJ1234567989KLMNOPQRST==.....
E.g.: A random long string of code, but no .jpg or .png indicating the file name. When right clicking to save, it shows the image is blocked.
How can I get the images using Android code?
Tks
If it's not allowing them to be taken from a website, then it probably shouldn't be taken. That being said, there are a couple of options if you are the owner of the website.
If they are in a database then you can get the url address of them. Also, right clicking anywhere on the page to "View source" should get you some sort of URL of the image.
This seems more of a web service implementation issue rather than anything andriod specific. Many websites have this feature where you are not meant to retrieve information from the url.
However there should be a corresponding supported web service interface for fetching the metadata of a particular resource. If this is not supported then it's meant to be blocked.
The other trial and error sort of way is to invoke a 3rd party API like oEmbed (or Embed.ly : http://embed.ly/) that would return the metadata of the resource for which you have the URL. These services cover a wide range of websites and their resources.
You can search around in their site or find similar such services that would get you this information. Embed.ly is more of a personal preference due to its exhaustive list of supported sites.