对于想了解HowtoprotectyourprivacyfromFacebook的读者,本文将是一篇不可错过的文章,并且为您提供关于AResourcePoolcouldnotacquirearesou
对于想了解How to protect your privacy from Facebook的读者,本文将是一篇不可错过的文章,并且为您提供关于A ResourcePool could not acquire a resource from its primary factory or source.、com.facebook.android.FacebookError的实例源码、com.facebook.FacebookActivity的实例源码、com.facebook.FacebookContentProvider的实例源码的有价值信息。
本文目录一览:- How to protect your privacy from Facebook
- A ResourcePool could not acquire a resource from its primary factory or source.
- com.facebook.android.FacebookError的实例源码
- com.facebook.FacebookActivity的实例源码
- com.facebook.FacebookContentProvider的实例源码
How to protect your privacy from Facebook
http://www.zdnet.com/article/how-to-protect-your-privacy-from-facebook/


Security
- Ransomware attacks are causing more downtime than ever before
- Scam, spam and phishing texts: How to spot SMS fraud and stay safe
- Cybersecurity: A guide for parents to keep kids safe online
- The security risks of running unsupported Windows 7 (ZDNet YouTube)
- Best home security of 2020: Professional monitoring and DIY (CNET)
- How to set up secure credential storage for Docker (TechRepublic)
We know Facebook likes to play Big Brother. Collecting, sharing, and using your personal data is how Facebook founder and CEO Mark Zuckerberg became worth more than $80 billion. What you may not know is just how much of your data Facebook and its allies collect about you even when you''re not on Facebook. Now, thanks to Facebook''s release of Off-Facebook Activity (OFA) tools, we can see more, but not all, of what Facebook and friends know about us.
What are Off-Facebook Activity (OFA) tools?
Facebook spins OFA as Facebook helping you gain control of your personal data, but the reality is darker. Facebook has been slowly forced to let you see more of what and how Facebook uses your data. It all began when it was revealed that Facebook had shared users'' data with Cambridge Analytica. That analysis company, in turn, used your data to help elect Donald Trump. Facebook claimed it didn''t know what was going on. It''s since been shown that Facebook knew what Cambridge Analytica was up to before it was publicly revealed.
Because of this, and other social networks'' privacy and security violations, the California Consumer Privacy Act now requires Facebook and other companies to reveal more about the data it collects and shares about you. In other words, Facebook had no choice but to finally come clean -- or at least cleaner -- about what is up to with your data.
What data is Facebook collecting?
Besides the obvious -- your name and that you liked Aunt Jodie''s funny cat picture -- businesses that use Facebook Business Tools, such as Facebook Pixel, the Facebook Software Development Kit (SDK), and Facebook Login and Account Kit, also share what they know about you with Facebook. Specifically, they track when you''re:
- Opening an app
- Logging into an app with Facebook
- Viewing content
- Searching for an item
- Adding an item to a shopping cart
- Making a purchase
- Making a donation
- When you''ve been naughty or nice
OK, I made up the last one, but when you use Facebook, you really are giving up your privacy in ways that would make Santa Claus envious.
Here''s what that means in real life. According to the Electronic Frontier Foundation (EFF), Facebook tracks you on 30% of the top 10,000 websites. On my own account, I see that Facebook and its partners have data on me from 955 apps and websites that I''ve used or visited in the last 180 days. That includes every time I checked my Ring doorbell, the time I checked StubHub for WVU-Kansas basketball tickets, and how often checked into Zillow since I''m looking for a new home. And, of course, all the dozens of different sites I visit every day.
That may be only the tip of the iceberg. If you do a little digging, you''ll find Facebook admit:
For technical and accuracy reasons, this list doesn''t show all the activity that we''ve received. Activity that is not shown includes information we''ve received when you''re not logged into Facebook, or when we can''t confirm that you''ve previously used Facebook on that device. It also includes details such as the item you added to your shopping cart.
So, what can you do about it?
First, forget about Facebook deleting your data or even stopping its snooping. Yes, you can clear your Facebook history, but that does not delete it. Instead, Facebook states your "activity history will be disconnected from your account. We''ll continue to receive your activity from the businesses and organizations you visit in the future."
Isn''t that reassuring?
The only real way out is to delete your Facebook account. But, even then, Facebook says it will take up to 90 days to remove all your data. It doesn''t, however, spell out what it does with your activity history.
What you can do today is turn off, sort of, the data Facebook and its partners share on you. But, even then, Facebook says: "We''ll still receive activity from whatever site. It may be used for measurement purposes and to make improvements to our ads systems, but it will be disconnected from your account." You can believe Facebook if you like. I''m inclined to doubt it.
Still, if you''re stuck on Facebook because that''s where your friends and family hang out, you might as well make the most of OFA.
Here''s how:
Manage Your Off-Facebook Activity
First, go to the Off-Facebook Activity page. To view this page, you may need to enter your Facebook password. This is normal. Here, you''ll find more information on how OFA works.
I then recommend you go to Manage Your Off-Facebook Activity page via the top-link in the right-hand column. On this page, you''ll find all the sites and services Facebook is sharing data with and vice-versa.
To see exactly what each one is up to in general terms, click on the ones you''re concerned about. Since you probably have hundreds of them, I doubt you''ll want to go through all of them.
Turn off future activity
From the Manage Your Off-Facebook Activity pages, toward the bottom of the display, you have the option of "Turn off future activity." Again, that doesn''t stop either Facebook or the company from getting your data; it just breaks, in theory, the connection between your Facebook identity and your data.
Clear History
You can also just "Clear History."
You''ll find this option off the Manage Your Off-Facebook Activity page on the right-hand column. It will disconnect your account from all the sites and services currently following you. Again, though, this doesn''t "clear" anything. It just snaps the link between your account and Facebook''s partners. Both they and Facebook will continue to receive your activity from when you visit their sites and services. If you do this, you may also be logged out of any site you use a Facebook login to connect with.
More Options
You''re not done yet. Head back once more to Manage Your Off-Facebook Activity. There, click on "More Options" on the right-hand column. Once that''s done, toward the bottom of the column, you''ll see a link to Manage Future Activity. Click on it, and you''ll get another window with a button for, once again, Manage Future Activity.
From here, you get an option that says: "Your future off-Facebook activity saved with your account allows us to personalize your experience." If you turn this off, you''ll more permanently break the connection between your account and everyone else. The one thing, in particular, that we know will happen is that you''ll no longer be able to use Facebook to log into third-party websites.
At the end of all this, Facebook and friends will still be spying on you, but at least they''ll be seeing through a dark glass instead of looking right at you. For more on how to secure your personal information on Facebook, take these steps.
Again, the only real way out of Facebook is to give it up. I know that''s easier said than done, but it''s the only way to be sure.
Related Stories:
- Securing Facebook: Keep your data safe with these privacy settings
- Fed up? How to delete or deactivate your Facebook account
- No right to be forgotten? Here''s how to remove yourself from the Internet and hide your identity
A ResourcePool could not acquire a resource from its primary factory or source.
严重: Servlet.service () for servlet [dispatcherServlet] in context with path [/heima_ssm_web1] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
### The error may exist in com/itheima/ssm/dao/IProductDao.java (best guess)
### The error may involve com.itheima.ssm.dao.IProductDao.findAll
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!] with root cause
com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
问题解决
1. 检查数据库配置;
2. 如果你和我一样也是虚拟机中的数据库,检查虚拟机中数据库是否还能链接
com.facebook.android.FacebookError的实例源码
public void onFacebookError(FacebookError e,final Object state) { Log.e("Facebook",e.getMessage()); e.printstacktrace(); }
public void onFacebookError(FacebookError error) { SessionEvents.onLoginError(error.getMessage(),SessionListenerType.FACEBOOK_SESSION_LISTENER); }
public void onFacebookError(FacebookError e) { Log.d(TAG,"facebook error"); this.fba.cb.error("Facebook error: " + e.getMessage()); }
public void onFacebookError(FacebookError error) { showToast("Authentication with Facebook Failed!"); }
@Override public void onFacebookError(FacebookError error) { SessionEvents.onLoginError(error.getMessage()); }
public void onFacebookError(FacebookError e) { //ALog.m(); showErrorAndFinish(); }
public void onFacebookError(FacebookError error) { //ALog.m(); showErrorAndFinish(); }
@Override public void onFacebookError(FacebookError e,e.getMessage()); e.printstacktrace(); }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); String[] permissions = {"offline_access","read_stream","user_events","friends_events","friends_status","user_status","friends_photos","user_photos","friends_about_me","friends_website","email","friends_birthday","friends_location"}; FacebookUtil.facebook.authorize(AuthorizationActivity.this,permissions,Facebook.FORCE_DIALOG_AUTH,new DialogListener() { @Override public void onComplete(Bundle values) { FacebookUtil.accesstoken = FacebookUtil.facebook.getAccesstoken(); Log.i("Expires",String.valueOf(FacebookUtil.facebook.getAccessExpires()));; AccountManager am = AccountManager.get(AuthorizationActivity.this); Account account = am.getAccountsByType(AuthorizationActivity.this.getString(R.string.ACCOUNT_TYPE))[0]; am.setPassword(account,FacebookUtil.facebook.getAccesstoken()); SharedPreferences prefs = AuthorizationActivity.this.getSharedPreferences(AuthorizationActivity.this.getPackageName() + "_preferences",MODE_MULTI_PROCESS); SharedPreferences.Editor editor = prefs.edit(); editor.putInt("permission_level",FacebookUtil.PERMISSION_LEVEL); editor.putLong("access_expires",FacebookUtil.facebook.getAccessExpires()); editor.commit(); ContentResolver.requestSync(account,ContactsContract.AUTHORITY,new Bundle()); ContentResolver.requestSync(account,CalendarContract.AUTHORITY,new Bundle()); // Log.i(TAG,ContentResolver.); //Log.i(TAG,"Calendar :" + ContentResolver.isSyncActive(account,CalendarContract.AUTHORITY)); // Log.i(TAG,"Contacts :" + ContentResolver.isSyncActive(account,ContactsContract.AUTHORITY)); FacebookUtil.isExtendingToken = false; AuthorizationActivity.this.finish(); } @Override public void onFacebookError(FacebookError error) { Log.i(TAG,"fberror"); AuthorizationActivity.this.finish(); } @Override public void onError(DialogError e) { Log.i(TAG,"error"); AuthorizationActivity.this.finish(); } @Override public void onCancel() { Log.i(TAG,"cancel"); AuthorizationActivity.this.finish(); } }); }
@Override public void onFacebookError(FacebookError e) { Log.e(TAG,e.toString()); }
public void onFacebookError(FacebookError e) { e.printstacktrace(); }
public void onFacebookError(FacebookError e,final Object state) { e.printstacktrace(); }
public void onFacebookError(FacebookError e) { Log.d(TAG,"facebook error"); this.fba.error("Facebook error: " + e.getMessage(),callbackId); }
com.facebook.FacebookActivity的实例源码
public static void setupAppCallForErrorResult(AppCall appCall,FacebookException exception) { if (exception == null) { return; } Validate.hasFacebookActivity(FacebookSdk.getApplicationContext()); Intent errorResultIntent = new Intent(); errorResultIntent.setClass(FacebookSdk.getApplicationContext(),FacebookActivity.class); errorResultIntent.setAction(FacebookActivity.PASS_THROUGH_CANCEL_ACTION); NativeProtocol.setupProtocolRequestIntent( errorResultIntent,appCall.getCallId().toString(),null,NativeProtocol.getLatestKNownVersion(),NativeProtocol.createBundleForException(exception)); appCall.setRequestIntent(errorResultIntent); }
public static void setupAppCallForWebDialog( AppCall appCall,String actionName,Bundle parameters) { Validate.hasFacebookActivity(FacebookSdk.getApplicationContext()); Validate.hasInternetPermissions(FacebookSdk.getApplicationContext()); Bundle intentParameters = new Bundle(); intentParameters.putString(NativeProtocol.WEB_DIALOG_ACTION,actionName); intentParameters.putBundle(NativeProtocol.WEB_DIALOG_ParaMS,parameters); Intent webDialogIntent = new Intent(); NativeProtocol.setupProtocolRequestIntent( webDialogIntent,actionName,intentParameters); webDialogIntent.setClass(FacebookSdk.getApplicationContext(),FacebookActivity.class); webDialogIntent.setAction(FacebookDialogFragment.TAG); appCall.setRequestIntent(webDialogIntent); }
public static void hasFacebookActivity(Context context,boolean shouldThrow) { Validate.notNull(context,"context"); PackageManager pm = context.getPackageManager(); ActivityInfo activityInfo = null; if (pm != null) { ComponentName componentName = new ComponentName(context,FacebookActivity.class); try { activityInfo = pm.getActivityInfo(componentName,PackageManager.GET_ACTIVITIES); } catch (PackageManager.NameNotFoundException e) { } } if (activityInfo == null) { if (shouldThrow) { throw new IllegalStateException(FACEBOOK_ACTIVITY_NOT_FOUND_REASON); } else { Log.w(TAG,FACEBOOK_ACTIVITY_NOT_FOUND_REASON); } } }
public static void setupAppCallForErrorResult(AppCall appCall,FacebookException exception) { if (exception == null) { return; } Intent errorResultIntent = new Intent(); errorResultIntent.setClass(FacebookSdk.getApplicationContext(),NativeProtocol.createBundleForException(exception)); appCall.setRequestIntent(errorResultIntent); }
public static void setupAppCallForWebDialog( AppCall appCall,Bundle parameters) { Bundle intentParameters = new Bundle(); intentParameters.putString(NativeProtocol.WEB_DIALOG_ACTION,FacebookActivity.class); webDialogIntent.setAction(FacebookDialogFragment.TAG); appCall.setRequestIntent(webDialogIntent); }
public static void setupAppCallForErrorResult(AppCall appCall,NativeProtocol.createBundleForException(exception)); appCall.setRequestIntent(errorResultIntent); }
public static void setupAppCallForWebDialog( AppCall appCall,FacebookActivity.class); webDialogIntent.setAction(FacebookDialogFragment.TAG); appCall.setRequestIntent(webDialogIntent); }
public static void hasFacebookActivity(Context context,FACEBOOK_ACTIVITY_NOT_FOUND_REASON); } } }
private Intent getFacebookActivityIntent(LoginClient.Request request) { Intent intent = new Intent(); intent.setClass(FacebookSdk.getApplicationContext(),FacebookActivity.class); intent.setAction(request.getLoginBehavior().toString()); // Let FacebookActivity populate extras appropriately LoginClient.Request authClientRequest = request; Bundle extras = new Bundle(); extras.putParcelable(LoginFragment.EXTRA_REQUEST,request); intent.putExtras(extras); return intent; }
@Test public void testRecyclerViewFBShareClicked_ShouldStartFBActivity() throws Exception { int positionToClick = 0; setUpShadowAdapter(positionToClick); shadowAdapter.itemVisible(positionToClick); shadowAdapter.performItemClickOverViewInHolder(positionToClick,R.id.fbShare); Intent intent = shadowActivity.peekNextStartedActivity(); assertEquals(new ComponentName(RuntimeEnvironment.application,FacebookActivity.class),intent.getComponent()); }
@Test public void testRecyclerViewFBSendClicked_ShouldStartFBActivity() throws Exception { int positionToClick = 0; setUpShadowAdapter(positionToClick); shadowAdapter.itemVisible(positionToClick); shadowAdapter.performItemClickOverViewInHolder(positionToClick,R.id.fbSend); Intent intent = shadowActivity.peekNextStartedActivity(); assertEquals(new ComponentName(RuntimeEnvironment.application,intent.getComponent()); }
private Intent getLoginActivityIntent(LoginClient.Request request) { Intent intent = new Intent(); intent.setClass(FacebookSdk.getApplicationContext(),FacebookActivity.class); intent.setAction(request.getLoginBehavior().toString()); // Let LoginActivity populate extras appropriately LoginClient.Request authClientRequest = request; Bundle extras = LoginFragment.populateIntentExtras(authClientRequest); intent.putExtras(extras); return intent; }
private Intent getFacebookActivityIntent(LoginClient.Request request) { Intent intent = new Intent(); intent.setClass(FacebookSdk.getApplicationContext(),FacebookActivity.class); intent.setAction(request.getLoginBehavior().toString()); // Let FacebookActivity populate extras appropriately LoginClient.Request authClientRequest = request; Bundle extras = LoginFragment.populateIntentExtras(authClientRequest); intent.putExtras(extras); return intent; }
public static void setupAppCallForWebFallbackDialog( AppCall appCall,Bundle parameters,DialogFeature feature) { Validate.hasFacebookActivity(FacebookSdk.getApplicationContext()); Validate.hasInternetPermissions(FacebookSdk.getApplicationContext()); String featureName = feature.name(); Uri fallbackUrl = getDialogWebFallbackUri(feature); if (fallbackUrl == null) { throw new FacebookException( "Unable to fetch the Url for the DialogFeature : '" + featureName + "'"); } // Since we're talking to the server here,let's use the latest version we kNow about. // We kNow we are going to be communicating over a bucketed protocol. int protocolVersion = NativeProtocol.getLatestKNownVersion(); Bundle webParams = ServerProtocol.getQueryParamsForPlatformActivityIntentWebFallback( appCall.getCallId().toString(),protocolVersion,parameters); if (webParams == null) { throw new FacebookException("Unable to fetch the app's key-hash"); } // Now form the Uri if (fallbackUrl.isRelative()) { fallbackUrl = Utility.buildUri( ServerProtocol.getDialogAuthority(),fallbackUrl.toString(),webParams); } else { fallbackUrl = Utility.buildUri( fallbackUrl.getAuthority(),fallbackUrl.getPath(),webParams); } Bundle intentParameters = new Bundle(); intentParameters.putString(NativeProtocol.WEB_DIALOG_URL,fallbackUrl.toString()); intentParameters.putBoolean(NativeProtocol.WEB_DIALOG_IS_FALLBACK,true); Intent webDialogIntent = new Intent(); NativeProtocol.setupProtocolRequestIntent( webDialogIntent,feature.getAction(),FacebookActivity.class); webDialogIntent.setAction(FacebookDialogFragment.TAG); appCall.setRequestIntent(webDialogIntent); }
public static void setupAppCallForWebFallbackDialog( AppCall appCall,DialogFeature feature) { String featureName = feature.name(); Uri fallbackUrl = getDialogWebFallbackUri(feature); if (fallbackUrl == null) { throw new FacebookException( "Unable to fetch the Url for the DialogFeature : '" + featureName + "'"); } // Since we're talking to the server here,FacebookActivity.class); webDialogIntent.setAction(FacebookDialogFragment.TAG); appCall.setRequestIntent(webDialogIntent); }
public static void setupAppCallForWebFallbackDialog( AppCall appCall,FacebookActivity.class); webDialogIntent.setAction(FacebookDialogFragment.TAG); appCall.setRequestIntent(webDialogIntent); }
com.facebook.FacebookContentProvider的实例源码
private Attachment(UUID callId,Bitmap bitmap,Uri uri) { this.callId = callId; this.bitmap = bitmap; this.originalUri = uri; if (uri != null) { String scheme = uri.getScheme(); if ("content".equalsIgnoreCase(scheme)) { isContentUri = true; shouldCreateFile = uri.getAuthority() != null && !uri.getAuthority().startsWith("media"); } else if ("file".equalsIgnoreCase(uri.getScheme())) { shouldCreateFile = true; } else if (!Utility.isWebUri(uri)) { throw new FacebookException("Unsupported scheme for media Uri : " + scheme); } } else if (bitmap != null) { shouldCreateFile = true; } else { throw new FacebookException("Cannot share media without a bitmap or Uri set"); } attachmentName = !shouldCreateFile ? null : UUID.randomUUID().toString(); attachmentUrl = !shouldCreateFile ? this.originalUri.toString() : FacebookContentProvider.getAttachmentUrl( FacebookSdk.getApplicationId(),callId,attachmentName); }
private Attachment(UUID callId,Uri uri) { this.callId = callId; this.bitmap = bitmap; this.imageUri = uri; if (uri != null) { String scheme = uri.getScheme(); if ("content".equalsIgnoreCase(scheme)) { isContentUri = true; isBinaryData = true; } else if ("file".equalsIgnoreCase(uri.getScheme())) { isBinaryData = true; } else if (!Utility.isWebUri(uri)) { throw new FacebookException("Unsupported scheme for image Uri : " + scheme); } } else if (bitmap != null) { isBinaryData = true; } else { throw new FacebookException("Cannot share a photo without a bitmap or Uri set"); } attachmentName = !isBinaryData ? null : UUID.randomUUID().toString(); attachmentUrl = !isBinaryData ? this.imageUri.toString() // http(s) images can be used directly : FacebookContentProvider.getAttachmentUrl( FacebookSdk.getApplicationId(),attachmentName); }
private Attachment(UUID callId,attachmentName); }
我们今天的关于How to protect your privacy from Facebook的分享已经告一段落,感谢您的关注,如果您想了解更多关于A ResourcePool could not acquire a resource from its primary factory or source.、com.facebook.android.FacebookError的实例源码、com.facebook.FacebookActivity的实例源码、com.facebook.FacebookContentProvider的实例源码的相关信息,请在本站查询。
本文标签: