I have a registration feature in which users have to select the profile image.
The app will open the photos or take them on the camera, and I don't know how to pick an image on the integration test.
I want to create an integration test to ensure the user can select an image and upload it to the server. Can I make an integration test on the pick image feature?
Related
Can anyone point me to a library or advice on how I can go about sharing an image from the gallery with my app using the share button? I want to have my app appear in the list of apps to share with. There are libraries such as [share] https://pub.dev/packages/share that allow you to share content from your app with other apps but it doesn't do what I am looking for.
TL:DR Coming from android,you can do this with a content provider. then using platfrom channels get it to flutter.
Allowing Other Apps to Start Your Activity
For example, if you build a social app that can share messages or photos with the user's friends, you should support the ACTION_SEND intent. Then, when users initiate a "share" action from another app, your app appears as an option in the chooser dialog (also known as the "disambiguation dialog")
To allow other apps to start your activity in this way, you need to add an element in your manifest file for the corresponding element.
When your app is installed on a device, the system identifies your intent filters and adds the information to an internal catalog of intents supported by all installed apps. When an app calls startActivity() or startActivityForResult(), with an implicit intent, the system finds which activity (or activities) can respond to the intent.
read more from docs
I guess you are searching for something like explained here:
https://medium.com/flutter-community/receive-sharing-files-to-flutter-app-from-another-app-7a84c0c0cd88
You could also try this flutter package: https://pub.dev/packages/receive_sharing_intent
I'd like to add test pages to an existing Facebook a test environment;NOTE: I have already created an app, together with test-app & test users on developers.facebook.com. Everything is working fine.
I however need to test my stuff against a variety of Facebook pages, be users, or business pages, all done in sandbox mode (e.g. pages must be private). I haven't seen a quick start guides to do that on FB dev portal, and from what I found with google, others have resorted to create test pages. I'd rather use something that's tied up to an app in particular, so as to keep the testing configuration clean.
Can someone share pointers?
If you create a test user for your app and then use that test user to create a page it will not exist except for other test users of your app.
To create a test user for your app:
Go to https://developers.facebook.com/
My Apps > (Select your app that you want the test page/test user under)
Click the Roles tab on the left
Click Test Users in the tabs on the top
Add a test user (if you don't have one)
Click Edit next to the test user you want to use
Click Login as this test user
Follow the normal steps for creating a page
I use oauth with twitter/facebook/google+ to allow users of our website to signup and signin. We display the users' avatar with user generated content across the site.
With facebook the original image keeps the same url when the user change it (http://graph.facebook.com/[userid]/picture?type=normal)
But on twitter every image used as avatar has a different url (http://a0.twimg.com/profile_images/[slug]/[other_slug]_reasonably_small.jpeg)
What is the best practice to display these images, and what is allowed by the terms of use.
1- Download a copy of the image and create a media on our server, then users can change it as they see fit?
2- Always link to original image and update the link in user profile on sync?
It looks like it's not possible to programmatically set a user's profile picture - you can only upload to an album, then send the user to a "make profile picture" page. Is there any way to do this for a test user?
I'm doing automated testing for a mobile app and want to generate new test users for each test. However, the app requires users to have a profile picture in order to log in, so it's currently not possible for me to create new users on the fly and have them be able to use the app. Is there a workaround for this? And are there plans for this functionality to be implemented?
(I'm using ruby and httparty to communicate with the API.)
Currently you can set up test user's detail from dashboard, but still facebook does not allow to do it programmatically via api.
I have Facebook application ready and token, app id, secret. Now I have searched a lot and it seems that I am unable to upload image to App wall or create album for the app.
What do I have:
Facebook app with canvas where user can enter data and upload an image(to my PHP script on a server)
What do I want to do:
To save the image on my app somewhere from PHP using PHP SDK.
What's the closest approach I have done:
Googled A LOT
I have added login/logout for user so I could upload
the image to user wall or album but I want to photo to be on the app
itself so to bypass the user authentification and I need to store
the image on my app somewhere.
Is this possible?
An App itself does not have a place to display images/videos.
You will need to create a Page for the App. To do this, go to developers.facebook.com/apps and click 'Edit App' in the top-right. In the 'App Details' section, click the button labelled 'Create Facebook Page' and follow the steps. This will create a Page to represent the App. You can then upload images/videos etc. as you would do with any other page.
Or, you could give the impression of storing an image on your App by storing the image in a database and recalling it upon demand...